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
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: Monday, November 25, 2002 2:21 PM
> To: [EMAI
> 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 "
Sent: Monday, November 25, 2002 2:21 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Form trouble
Hi,
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?
Thanks,
Hi,
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?
Thanks,
David
__
Do you Yahoo!?
Yahoo! Mail Plus Powerful. Affordable. Sign up now.
h
7 matches
Mail list logo