Jump to content

Change server method to GET on refresh.


sepoto

Recommended Posts

I want to change the method from POST to GET whenever a user uses the refresh button in the browser. Can this be done?

Link to comment
Share on other sites

well you have to remember that there is no fixed method of get/post for a page, a page can contain several get forms and several post forms.i take it the real issue here is you have a form which you submit, then refresh, and the form gets sent again.if thats the problem, you can solve it by redirecting the client in php after the form has been successfully processed:

header('Location: fileNameHere.php');

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...