SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Dec 2000
    0 Post(s)
    0 Thread(s)
    hey, I'm using many forms to let visitor add stuff to my site... I use the php_self fonction to handle everything in a single script. This causes me a major problem. If user REFRESH the page rigth after he submitted his information, it also resend the information... What can i do to make sure its only sent once?!?!?

    P.S. Dont tell me to use POST method, it does the same crap except it warned before refreshing....

    I'm pretty sure sure there's an easy way to do that but i have no idea. PLZ HELP!

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    San Diego, CA
    0 Post(s)
    0 Thread(s)
    After you do your adding use header("Location: ".$PHP_SELF."?nc=".time());

    This will reload the current page with the unixtimestamp added onto the end of it and then you will be in the clear.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts