{"id":1603,"date":"2015-06-20T08:05:46","date_gmt":"2015-06-20T08:05:46","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=1603"},"modified":"2022-02-17T07:14:02","modified_gmt":"2022-02-17T07:14:02","slug":"refresh-after-form-post","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/html\/forms-html\/refresh-after-form-post","title":{"rendered":"Refresh after form POST"},"content":{"rendered":"<p>\nThis is a solution to the problem of pressing refresh after posting a form causing&nbsp;a &quot;resubmit form information message box&quot; for the user. &nbsp;This&nbsp;simply causes the page to reload and can be placed after handling the POST actions\n<\/p>\n<pre>\r\n<code>\r\nif ( isset($_POST['action']))\r\n{\r\n\t\/\/----- AFTER ANY POST RELOAD THE PAGE SO REFRESH CAN BE USED -----\r\n\theader(&quot;Location: my_page_name.php&quot;);\r\n\tdie();\r\n}\r\n<\/code><\/pre>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a solution to the problem of pressing refresh after posting a form causing&nbsp;a &quot;resubmit form information message box&quot; for the user. &nbsp;This&nbsp;simply causes the page to reload and can be placed after handling the POST actions if ( isset($_POST[&#8216;action&#8217;])) { \/\/&#8212;&#8211; AFTER ANY POST RELOAD THE PAGE SO REFRESH CAN BE USED &#8212;&#8211; [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[],"class_list":["post-1603","post","type-post","status-publish","format-standard","hentry","category-forms-html"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/1603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=1603"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/1603\/revisions"}],"predecessor-version":[{"id":1605,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/1603\/revisions\/1605"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=1603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=1603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=1603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}