0

My modal has a simple form in it and the form post data to process.php page. The $_POST['message'] and other posted data will be process inside process.php, however the value of $_POST['message'] and other posted data's values remains on the page. Means, when I echo $_POST['message'] inside process.php and refresh the page, the value keeps showing up! in which the process.php runs its things again and I don't want that! I am not sure where the session comes from or this cause by cookie but I don't want that. I want that the posted data will be removed after processing inside process.php page. How can I fix this?

callmejoejoe
  • 101
  • 1
  • 1
  • 9
  • I assume the refresh you are doing is resubmitting the form data - your browser is likely warning you of this when you refresh – athms Oct 11 '17 at 11:46

1 Answers1

0

you can force to unset it , unset(var) OR unset($_POST['message'])

Evinn
  • 153
  • 1
  • 11