hno Posted September 2, 2009 Share Posted September 2, 2009 hi I have a form and a hidden field which name is "submit" .If the form submitted the value of it become true and the script understand the form has submitted.Now after the form has submitted if the user refresh the page the script still think the form has submitted.Is it possible to unset the $_POST['submit'] after the process is finished? I user unset ($_POST['submit'] ) but itsn't work and the value is still exist. How can unset that? thanks Quote Link to comment https://forums.phpfreaks.com/topic/172798-how-to-empty-_post/ Share on other sites More sharing options...
MasterACE14 Posted September 2, 2009 Share Posted September 2, 2009 could assign it something empty. example: $_POST['submit'] = null; // or $_POST['submit'] = ""; Quote Link to comment https://forums.phpfreaks.com/topic/172798-how-to-empty-_post/#findComment-910755 Share on other sites More sharing options...
Garethp Posted September 2, 2009 Share Posted September 2, 2009 I used unset($_POST['FieldName']); and it worked for me when I tested it. What's your code? And can you print_r($_POST); for us? Quote Link to comment https://forums.phpfreaks.com/topic/172798-how-to-empty-_post/#findComment-910759 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.