Refresh
Posted: Fri Nov 14, 2003 4:37 am
Hi all,
I´m new in php so my question may look prety basic.
the thing is, I have the folowing code wich work´s fine but after pressing the submit button every time I refresh the page (F5) it returns allways the same "Submited". How can I "reset" the form after pressing the button so if the user refreshes the page it wont execute the submit button again?
Thank´s in advance
Luis Almeida
I´m new in php so my question may look prety basic.
the thing is, I have the folowing code wich work´s fine but after pressing the submit button every time I refresh the page (F5) it returns allways the same "Submited". How can I "reset" the form after pressing the button so if the user refreshes the page it wont execute the submit button again?
Thank´s in advance
Luis Almeida
Code: Select all
<?
if ($SUBMIT_BUTTON)
{
echo "Submited";
}
else
{
echo "Not yet Submited";
}
?>
<form action="" method="post" name="MY_FORM">
<input name="MY_TEXT" type="text" size="20" maxlength="20">
<input name="SUBMIT_BUTTON" type="submit">
</form>