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

    Join Date
    Nov 1999
    Rep Power

    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.

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

    Join Date
    Apr 1999
    Rep Power
    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)


Similar Threads

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

IMN logo majestic logo threadwatch logo seochat tools logo