{"id":657,"date":"2022-11-12T12:50:11","date_gmt":"2022-11-12T12:50:11","guid":{"rendered":"https:\/\/www.devopstrainer.in\/blog\/?p=657"},"modified":"2022-11-14T05:51:41","modified_gmt":"2022-11-14T05:51:41","slug":"if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it","status":"publish","type":"post","link":"https:\/\/www.devopstrainer.in\/blog\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\/","title":{"rendered":"&#8220;if your php page is submitting directly without filling data fields to the next php page in crud operation.&#8221; How can you fix it?"},"content":{"rendered":"\n<p>If you&#8217;re working on a <strong>Crud operation<\/strong> in PHP and directly submitting your data insertion php page with or without filling data fields to the next operation page. And it will redirect to the next php page without alertness and filling data. it doesn&#8217;t show the alert message above the <strong>php<\/strong> page after clicking on the submit button. it is continuously redirecting to another PHP crud page with adding data. And you&#8217;re finding an image like this which is below-mentioned here.<\/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\/php-crud-operation-1024x504.png\" alt=\"\" class=\"wp-image-658\" width=\"771\" height=\"379\" srcset=\"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/php-crud-operation-1024x504.png 1024w, https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/php-crud-operation-300x148.png 300w, https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/php-crud-operation-768x378.png 768w, https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/php-crud-operation.png 1317w\" sizes=\"auto, (max-width: 771px) 100vw, 771px\" \/><figcaption><strong><em>Crud Operation in PHP<\/em><\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p>I have a solution for you and it really works on my <strong>PHP crud operation<\/strong>. if you shall put the below-mentioned <strong>code<\/strong> on your php creation page under the php code then it will definitely work on your php page or crud operation page. In the below-mentioned code, <strong><em>update.php<\/em><\/strong> is another php page that you want to redirect to it and the only you need to do is you will have to give a location to that.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if (mysqli_query($conn, $sql)) {\n        \/\/ echo \"New record created successfully &lt;hr&gt;\";\n        header('location:update.php');\n    } else {\n        echo \"Unable to Insert Data\";\n    }<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re working on a Crud operation in PHP and directly submitting your data insertion php page with or without filling data fields to the next operation&#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,229,113],"tags":[258,257,260,259,261],"class_list":["post-657","post","type-post","status-publish","format-standard","hentry","category-crud","category-operation","category-php","tag-crud-operation-in-php","tag-php-code","tag-php-crud","tag-php-crud-operation","tag-php-page"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>&quot;if your php page is submitting directly without filling data fields to the next php page in crud operation.&quot; How can you fix it? - 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\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&quot;if your php page is submitting directly without filling data fields to the next php page in crud operation.&quot; How can you fix it? - DevOps | SRE | DevSecOps\" \/>\n<meta property=\"og:description\" content=\"If you&#8217;re working on a Crud operation in PHP and directly submitting your data insertion php page with or without filling data fields to the next operation...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.devopstrainer.in\/blog\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\/\" \/>\n<meta property=\"og:site_name\" content=\"DevOps | SRE | DevSecOps\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-12T12:50:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-14T05:51:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/php-crud-operation-1024x504.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\\\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\\\/\"},\"author\":{\"name\":\"rahulkr kr\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/#\\\/schema\\\/person\\\/e9fd1d88de76754aa189257cd197394d\"},\"headline\":\"&#8220;if your php page is submitting directly without filling data fields to the next php page in crud operation.&#8221; How can you fix it?\",\"datePublished\":\"2022-11-12T12:50:11+00:00\",\"dateModified\":\"2022-11-14T05:51:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\\\/\"},\"wordCount\":190,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/php-crud-operation-1024x504.png\",\"keywords\":[\"Crud operation in PHP\",\"PHP code\",\"PHP crud\",\"PHP crud operation\",\"php page\"],\"articleSection\":[\"CRUD\",\"Operation\",\"PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\\\/\",\"url\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\\\/\",\"name\":\"\\\"if your php page is submitting directly without filling data fields to the next php page in crud operation.\\\" How can you fix it? - DevOps | SRE | DevSecOps\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/php-crud-operation-1024x504.png\",\"datePublished\":\"2022-11-12T12:50:11+00:00\",\"dateModified\":\"2022-11-14T05:51:41+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/#\\\/schema\\\/person\\\/e9fd1d88de76754aa189257cd197394d\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/php-crud-operation.png\",\"contentUrl\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/php-crud-operation.png\",\"width\":1317,\"height\":648},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"&#8220;if your php page is submitting directly without filling data fields to the next php page in crud operation.&#8221; How can you fix it?\"}]},{\"@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":"\"if your php page is submitting directly without filling data fields to the next php page in crud operation.\" How can you fix it? - 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\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\/","og_locale":"en_US","og_type":"article","og_title":"\"if your php page is submitting directly without filling data fields to the next php page in crud operation.\" How can you fix it? - DevOps | SRE | DevSecOps","og_description":"If you&#8217;re working on a Crud operation in PHP and directly submitting your data insertion php page with or without filling data fields to the next operation...","og_url":"https:\/\/www.devopstrainer.in\/blog\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\/","og_site_name":"DevOps | SRE | DevSecOps","article_published_time":"2022-11-12T12:50:11+00:00","article_modified_time":"2022-11-14T05:51:41+00:00","og_image":[{"url":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/php-crud-operation-1024x504.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\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\/#article","isPartOf":{"@id":"https:\/\/www.devopstrainer.in\/blog\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\/"},"author":{"name":"rahulkr kr","@id":"https:\/\/www.devopstrainer.in\/blog\/#\/schema\/person\/e9fd1d88de76754aa189257cd197394d"},"headline":"&#8220;if your php page is submitting directly without filling data fields to the next php page in crud operation.&#8221; How can you fix it?","datePublished":"2022-11-12T12:50:11+00:00","dateModified":"2022-11-14T05:51:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.devopstrainer.in\/blog\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\/"},"wordCount":190,"commentCount":0,"image":{"@id":"https:\/\/www.devopstrainer.in\/blog\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/php-crud-operation-1024x504.png","keywords":["Crud operation in PHP","PHP code","PHP crud","PHP crud operation","php page"],"articleSection":["CRUD","Operation","PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.devopstrainer.in\/blog\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.devopstrainer.in\/blog\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\/","url":"https:\/\/www.devopstrainer.in\/blog\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\/","name":"\"if your php page is submitting directly without filling data fields to the next php page in crud operation.\" How can you fix it? - DevOps | SRE | DevSecOps","isPartOf":{"@id":"https:\/\/www.devopstrainer.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.devopstrainer.in\/blog\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\/#primaryimage"},"image":{"@id":"https:\/\/www.devopstrainer.in\/blog\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/php-crud-operation-1024x504.png","datePublished":"2022-11-12T12:50:11+00:00","dateModified":"2022-11-14T05:51:41+00:00","author":{"@id":"https:\/\/www.devopstrainer.in\/blog\/#\/schema\/person\/e9fd1d88de76754aa189257cd197394d"},"breadcrumb":{"@id":"https:\/\/www.devopstrainer.in\/blog\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.devopstrainer.in\/blog\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.devopstrainer.in\/blog\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\/#primaryimage","url":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/php-crud-operation.png","contentUrl":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/php-crud-operation.png","width":1317,"height":648},{"@type":"BreadcrumbList","@id":"https:\/\/www.devopstrainer.in\/blog\/if-your-php-page-is-submitting-directly-without-filling-data-fields-to-the-next-php-page-in-crud-operation-how-can-you-fix-it\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.devopstrainer.in\/blog\/"},{"@type":"ListItem","position":2,"name":"&#8220;if your php page is submitting directly without filling data fields to the next php page in crud operation.&#8221; How can you fix it?"}]},{"@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\/657","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=657"}],"version-history":[{"count":3,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/posts\/657\/revisions"}],"predecessor-version":[{"id":662,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/posts\/657\/revisions\/662"}],"wp:attachment":[{"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/media?parent=657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/categories?post=657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/tags?post=657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}