Jump to content

Destroy POST


Lijoyx

Recommended Posts

Because the browser resubmits the form data when the current URL is the same as the action="" parameter, you would need to set a session variable that says that you have already processed the data and then check the session variable and skip processing the additional sets of data.

 

You can also stop the browser from resubmitting the form data by submitting to a different page, then redirect back to your single form/form processing code page. See my comments in this thread on how/why to do this - http://www.phpfreaks.com/forums/index.php/topic,180214.0.html

Link to comment
https://forums.phpfreaks.com/topic/96450-destroy-post/#findComment-493637
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.