|
Posted by Shelly on 08/21/07 14:11
Here is a problem I have come across a few times and wonder if there is a
simple solution.
On my form I have a submit button called, say, addEntry. I do a test for it
as
if (isset($_POST[addEntry'])) { code to insert stuff into the database }
The problem is that after clicking the button, and the code returns it to
the same screen, if the user clicks the refresh button on the browser it
will add another entry. Is there a simple way to unset an html field test?
I know that unset can be unset a variable in php, but this is testing an
action on the form.
--
Shelly
Navigation:
[Reply to this message]
|