SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Dec 2000
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    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
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    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.


Bookmarks

Posting Permissions

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