{"id":636,"date":"2022-11-10T12:23:57","date_gmt":"2022-11-10T12:23:57","guid":{"rendered":"https:\/\/www.devopstrainer.in\/blog\/?p=636"},"modified":"2022-11-10T12:28:39","modified_gmt":"2022-11-10T12:28:39","slug":"how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file","status":"publish","type":"post","link":"https:\/\/www.devopstrainer.in\/blog\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\/","title":{"rendered":"How to hamper the &#8220;Confirm form resubmission&#8221; dialog box on the localhost PHP file?"},"content":{"rendered":"\n<p>Suppose, you&#8217;re doing <strong>crud<\/strong> <strong>operations<\/strong> through PHP and inserting certain sorts of data into the database through a localhost <strong>PHP<\/strong> file. And you find the <strong>Confirm form resubmission<\/strong> dialog box at the apex of the PHP page. You will find like below-mentioned image which I have mentioned besides below:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/insert-data-php-1024x497.png\" alt=\"\" class=\"wp-image-637\" width=\"739\" height=\"358\" srcset=\"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/insert-data-php-1024x497.png 1024w, https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/insert-data-php-300x145.png 300w, https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/insert-data-php-768x372.png 768w, https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/insert-data-php.png 1359w\" sizes=\"auto, (max-width: 739px) 100vw, 739px\" \/><figcaption><strong><em>Confirm Form Resubmission Dialog Box<\/em><\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p>If you will apply the below-mentioned code in your PHP file under the <strong>javascript code<\/strong> then you will get rid of all duplicate data from your localhost PHP page and it works in my <strong>PHP code<\/strong>. I&#8217;m sure, it will really work on your <strong>PHP<\/strong> code.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> &lt;script&gt;\n          if ( window.history.replaceState ) {\n         window.history.replaceState( null, null, window.location.href );\n          }\n        &lt;\/script&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Suppose, you&#8217;re doing crud operations through PHP and inserting certain sorts of data into the database through a localhost PHP file. And you find the Confirm form&#8230; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[252,250,251,113],"tags":[255,254,256,253,257],"class_list":["post-636","post","type-post","status-publish","format-standard","hentry","category-crud","category-javascript","category-localhost","category-php","tag-confirm-form-resubmission","tag-crud-operations","tag-javascript-code","tag-localhost-php-file","tag-php-code"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to hamper the &quot;Confirm form resubmission&quot; dialog box on the localhost PHP file? - DevOps | SRE | DevSecOps<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.devopstrainer.in\/blog\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to hamper the &quot;Confirm form resubmission&quot; dialog box on the localhost PHP file? - DevOps | SRE | DevSecOps\" \/>\n<meta property=\"og:description\" content=\"Suppose, you&#8217;re doing crud operations through PHP and inserting certain sorts of data into the database through a localhost PHP file. And you find the Confirm form...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.devopstrainer.in\/blog\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\/\" \/>\n<meta property=\"og:site_name\" content=\"DevOps | SRE | DevSecOps\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-10T12:23:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-10T12:28:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/insert-data-php-1024x497.png\" \/>\n<meta name=\"author\" content=\"rahulkr kr\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rahulkr kr\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\\\/\"},\"author\":{\"name\":\"rahulkr kr\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/#\\\/schema\\\/person\\\/e9fd1d88de76754aa189257cd197394d\"},\"headline\":\"How to hamper the &#8220;Confirm form resubmission&#8221; dialog box on the localhost PHP file?\",\"datePublished\":\"2022-11-10T12:23:57+00:00\",\"dateModified\":\"2022-11-10T12:28:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\\\/\"},\"wordCount\":116,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/insert-data-php-1024x497.png\",\"keywords\":[\"Confirm form resubmission\",\"crud operations\",\"javascript code\",\"localhost PHP file\",\"PHP code\"],\"articleSection\":[\"CRUD\",\"Javascript\",\"Localhost\",\"PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\\\/\",\"url\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\\\/\",\"name\":\"How to hamper the \\\"Confirm form resubmission\\\" dialog box on the localhost PHP file? - DevOps | SRE | DevSecOps\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/insert-data-php-1024x497.png\",\"datePublished\":\"2022-11-10T12:23:57+00:00\",\"dateModified\":\"2022-11-10T12:28:39+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/#\\\/schema\\\/person\\\/e9fd1d88de76754aa189257cd197394d\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/insert-data-php.png\",\"contentUrl\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/insert-data-php.png\",\"width\":1359,\"height\":659},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to hamper the &#8220;Confirm form resubmission&#8221; dialog box on the localhost PHP file?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/\",\"name\":\"DevOps | SRE | DevSecOps\",\"description\":\"Automation means Cost, Quality, Time\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/#\\\/schema\\\/person\\\/e9fd1d88de76754aa189257cd197394d\",\"name\":\"rahulkr kr\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/79531cbaf0b831cebc9631f6ac28f21fb3fb0dc2615eeecdeeec43038b513473?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/79531cbaf0b831cebc9631f6ac28f21fb3fb0dc2615eeecdeeec43038b513473?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/79531cbaf0b831cebc9631f6ac28f21fb3fb0dc2615eeecdeeec43038b513473?s=96&d=mm&r=g\",\"caption\":\"rahulkr kr\"},\"url\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/author\\\/rahulkr\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to hamper the \"Confirm form resubmission\" dialog box on the localhost PHP file? - DevOps | SRE | DevSecOps","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.devopstrainer.in\/blog\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\/","og_locale":"en_US","og_type":"article","og_title":"How to hamper the \"Confirm form resubmission\" dialog box on the localhost PHP file? - DevOps | SRE | DevSecOps","og_description":"Suppose, you&#8217;re doing crud operations through PHP and inserting certain sorts of data into the database through a localhost PHP file. And you find the Confirm form...","og_url":"https:\/\/www.devopstrainer.in\/blog\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\/","og_site_name":"DevOps | SRE | DevSecOps","article_published_time":"2022-11-10T12:23:57+00:00","article_modified_time":"2022-11-10T12:28:39+00:00","og_image":[{"url":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/insert-data-php-1024x497.png","type":"","width":"","height":""}],"author":"rahulkr kr","twitter_card":"summary_large_image","twitter_misc":{"Written by":"rahulkr kr","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\/#article","isPartOf":{"@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\/"},"author":{"name":"rahulkr kr","@id":"https:\/\/www.devopstrainer.in\/blog\/#\/schema\/person\/e9fd1d88de76754aa189257cd197394d"},"headline":"How to hamper the &#8220;Confirm form resubmission&#8221; dialog box on the localhost PHP file?","datePublished":"2022-11-10T12:23:57+00:00","dateModified":"2022-11-10T12:28:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\/"},"wordCount":116,"commentCount":0,"image":{"@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/insert-data-php-1024x497.png","keywords":["Confirm form resubmission","crud operations","javascript code","localhost PHP file","PHP code"],"articleSection":["CRUD","Javascript","Localhost","PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.devopstrainer.in\/blog\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\/","url":"https:\/\/www.devopstrainer.in\/blog\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\/","name":"How to hamper the \"Confirm form resubmission\" dialog box on the localhost PHP file? - DevOps | SRE | DevSecOps","isPartOf":{"@id":"https:\/\/www.devopstrainer.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\/#primaryimage"},"image":{"@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/insert-data-php-1024x497.png","datePublished":"2022-11-10T12:23:57+00:00","dateModified":"2022-11-10T12:28:39+00:00","author":{"@id":"https:\/\/www.devopstrainer.in\/blog\/#\/schema\/person\/e9fd1d88de76754aa189257cd197394d"},"breadcrumb":{"@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.devopstrainer.in\/blog\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\/#primaryimage","url":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/insert-data-php.png","contentUrl":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/insert-data-php.png","width":1359,"height":659},{"@type":"BreadcrumbList","@id":"https:\/\/www.devopstrainer.in\/blog\/how-to-hamper-the-confirm-form-resubmission-dialog-box-on-the-localhost-php-file\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.devopstrainer.in\/blog\/"},{"@type":"ListItem","position":2,"name":"How to hamper the &#8220;Confirm form resubmission&#8221; dialog box on the localhost PHP file?"}]},{"@type":"WebSite","@id":"https:\/\/www.devopstrainer.in\/blog\/#website","url":"https:\/\/www.devopstrainer.in\/blog\/","name":"DevOps | SRE | DevSecOps","description":"Automation means Cost, Quality, Time","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.devopstrainer.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.devopstrainer.in\/blog\/#\/schema\/person\/e9fd1d88de76754aa189257cd197394d","name":"rahulkr kr","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/79531cbaf0b831cebc9631f6ac28f21fb3fb0dc2615eeecdeeec43038b513473?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/79531cbaf0b831cebc9631f6ac28f21fb3fb0dc2615eeecdeeec43038b513473?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/79531cbaf0b831cebc9631f6ac28f21fb3fb0dc2615eeecdeeec43038b513473?s=96&d=mm&r=g","caption":"rahulkr kr"},"url":"https:\/\/www.devopstrainer.in\/blog\/author\/rahulkr\/"}]}},"_links":{"self":[{"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/posts\/636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/comments?post=636"}],"version-history":[{"count":4,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/posts\/636\/revisions"}],"predecessor-version":[{"id":642,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/posts\/636\/revisions\/642"}],"wp:attachment":[{"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/media?parent=636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/categories?post=636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/tags?post=636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}