SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Feb 2004
    Location
    Rome
    Posts
    296
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to avoid webform fllood

    I have a web form that post data reloading itself.
    Is there any way to check if this webform has been reposted using F5 (reload page) ?

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,426
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Put a hidden value into the form and when it is submitted add it to a database. When the form is submitted again check the database to see if the value of that hidden field is in there already, if so, do not process it and send the user back a fresh form.

  3. #3
    SitePoint Addict
    Join Date
    Feb 2004
    Location
    Rome
    Posts
    296
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    without mysql , and using only sessions is realizable ?.

  4. #4
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,426
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    You should be able to do it that way as well.

  5. #5
    SitePoint Addict
    Join Date
    Feb 2004
    Location
    Rome
    Posts
    296
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am able to do that using 2 webform pages (I use something similar to this described here http://www.php-forum.com/p/viewtopic.php?t=5687 also if I have big problems with firefox which cache session in a way that I have still to understand)
    The problem is when I have a webform which reload itself .. Anyone can give me some step to start ?


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
  •