RE: [PHP] Form trouble

2002-11-25 Thread Clint Tredway
When the form is submitted check the database with the info that is being submitted. If a record matches the data being submitted then don't do the insert. If there is not a record there, then insert the record.. HTH Clint -Original Message- From: David H [mailto:[EMAIL PROTECTED]]

Re: [PHP] Form trouble

2002-11-25 Thread Chris Boget
When the form is submitted check the database with the info that is being submitted. If a record matches the data being submitted then don't do the insert. If there is not a record there, then insert the record.. Either that or, if you are using mySQL, instead of using INSERT INTO... use

RE: [PHP] Form trouble

2002-11-25 Thread David H
But what about updates to the database...? Is there away not to have the information send to the server at all? Thanks, David --- Clint Tredway [EMAIL PROTECTED] wrote: When the form is submitted check the database with the info that is being submitted. If a record matches the data being

RE: [PHP] Form trouble

2002-11-25 Thread Clint Tredway
Not really. The back button uses the browers history to go back.. And there is no way to disable the back button. -Original Message- From: David H [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 2:33 PM To: Clint Tredway; [EMAIL PROTECTED] Subject: RE: [PHP] Form trouble

RE: [PHP] Form trouble

2002-11-25 Thread Chris Shiflett
There is one common method used to avoid this that is pretty reliable. 1. http://example.org/1.php submits to http://example.org/2.php 2. http://example.org/2.php processes the form, then uses a Location header to redirect to http://example.org/3.php. For example: header(Location:

Re: [PHP] Form trouble

2002-11-25 Thread Björn Schotte
Hi, * David H wrote: After I submited a query, if I use back then forward again the form will resubmit itself. Which I do not want. Does anyone have a solution for this problem? Register a token in a session var after submitting the form. When the user get's again on the resubmitted page you