Problem with "Backing"
Posted: Fri Oct 15, 2004 5:34 am
Hello
i am an intermediate user of php, yet some things still bug my codes since i first started:
when processing mysql query, i tend to separate the HTML form with the processing php page. then after executing the query(either adding new record or update it), i would redirect to another separate HTML page just for 'sucess message'.
the problem is, when the user "backs" (that is to click on the back button of a browser so as to retain previous page), the query executes again, resulting from "duplicate error" on mysql.
can anyone help me with this.
thanks in advance.
i am an intermediate user of php, yet some things still bug my codes since i first started:
when processing mysql query, i tend to separate the HTML form with the processing php page. then after executing the query(either adding new record or update it), i would redirect to another separate HTML page just for 'sucess message'.
the problem is, when the user "backs" (that is to click on the back button of a browser so as to retain previous page), the query executes again, resulting from "duplicate error" on mysql.
can anyone help me with this.
thanks in advance.