#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 1999
    Posts
    9
    Rep Power
    0
    Hello,

    I have a form that is to be filled. The summit button call a php script that populates a database. Is there a way to make sure that if someone click on the back button on the browser they do not get a chance to send the same form again.

    I hope this is clear enough.

    Thanks
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 1999
    Location
    London
    Posts
    110
    Rep Power
    0
    I have just had exactly(well sort of) the same problem, and got round it by doing a select count() before my delete stmt so it checks on a unique value to see if it exists, if it does you can delete and if it doesn't then you can't, which is kind of what you're asking.....basically you cant submit the same info twice
    The select stmt is below

    "select count(OrderID) from Orders where OrderID='$OrderID'"

    in mine it returns a count of either 1 or 0 from which I can do my if() stmt, hope that helps a bit (I dont think there is way to stop them going back and forth and resubmitting)

    ------------------
    cheers

Similar Threads

  1. back button in a IFRAME
    By swift in forum HTML Programming
    Replies: 1
    Last Post: February 17th, 2004, 05:45 AM
  2. refresh on browser back button
    By Daytona955i in forum Perl Programming
    Replies: 2
    Last Post: February 12th, 2004, 10:00 AM
  3. how to make back button reload page
    By con311 in forum HTML Programming
    Replies: 3
    Last Post: January 22nd, 2004, 01:55 AM
  4. can i call the back button?
    By frankieluccini in forum HTML Programming
    Replies: 5
    Last Post: January 12th, 2004, 08:26 AM
  5. Disable Back button on Explorer ToolBar
    By ninakot in forum HTML Programming
    Replies: 1
    Last Post: December 2nd, 2003, 11:21 PM

IMN logo majestic logo threadwatch logo seochat tools logo