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
yo
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: http
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
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
> 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 "
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]]
Sent:
6 matches
Mail list logo