{"id":709,"date":"2022-11-23T10:02:15","date_gmt":"2022-11-23T10:02:15","guid":{"rendered":"https:\/\/www.devopstrainer.in\/blog\/?p=709"},"modified":"2022-11-23T10:02:15","modified_gmt":"2022-11-23T10:02:15","slug":"when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it","status":"publish","type":"post","link":"https:\/\/www.devopstrainer.in\/blog\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\/","title":{"rendered":"When do you get two messages at the same time in php captcha form? how can you fix it?"},"content":{"rendered":"\n<p>If you are learning <strong>PHP<\/strong> or making a <strong>PHP captcha<\/strong> form on the basis of <strong>crud operation<\/strong>. And if you&#8217;re clicking on a submit button then meanwhile two <strong>messages<\/strong> are arriving at the same time. you may see on the below-mentioned image then how you can fix it.<\/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\/crud-messages-1024x514.png\" alt=\"\" class=\"wp-image-710\" width=\"791\" height=\"396\" srcset=\"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/crud-messages-1024x514.png 1024w, https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/crud-messages-300x150.png 300w, https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/crud-messages-768x385.png 768w, https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/crud-messages.png 1322w\" sizes=\"auto, (max-width: 791px) 100vw, 791px\" \/><figcaption><strong>PHP Messages<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p>I have a simple and quick solution for you, whenever you get this type of message in your PHP crud form then you have done a mistake in your <strong><em>if<\/em><\/strong>, and <strong><em>else<\/em><\/strong> function parts and if you put this kind of function at your <strong>php code<\/strong> which is mentioned over below code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if(isset($_POST&#91;'submit'])){\r\n  \/\/ checking for empty field\r\n  if(($_POST&#91;'title'] == \"\") || ($_POST&#91;'details'] == \"\") || ($_POST&#91;'name'] == \"\") || ($_POST&#91;'date'] == \"\") || ($_POST&#91;'email'] == \"\") || ($_POST&#91;'phone'] == \"\")){\r\n    echo\"&lt;small>&lt;b>Fill all fields..&lt;\/b>&lt;\/small>\";\r\n  }\r\nelse{session_start();\r\n$title=$_POST&#91;'title'];\r\n$details=$_POST&#91;'details'];\r\n$name=$_POST&#91;'name'];\r\n$date=$_POST&#91;'date'];\r\n$email=$_POST&#91;'email'];\r\n$phone=$_POST&#91;'phone'];\r\n$captcha=$_POST&#91;'captcha'];\r\nif($_SESSION&#91;'CODE']==$captcha){\r\n\t$sql= mysqli_query($conn,\"insert into wishform(title,details,name,date,email,phone) values('$title', '$details', '$name', '$date', '$email', '$phone')\");\r\n\techo \"Thank you! wishes submitted successfully.\";\r\n}else{\r\n\techo \"&lt;captcha>Please enter valid captcha code&lt;\/captcha>\";\r\n}\r\n}\r\n}<\/code><\/pre>\n\n\n\n<p>I have applied it to my php code and it has really worked on me. I give you the assurance that it will really work on your <strong>php crud operation<\/strong>. if you will apply this <strong>code function<\/strong> then you will get the distinguish messages after applying it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are learning PHP or making a PHP captcha form on the basis of crud operation. And if you&#8217;re clicking on a submit button then meanwhile&#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,165,229,113],"tags":[274,273,257,275,259],"class_list":["post-709","post","type-post","status-publish","format-standard","hentry","category-crud","category-function","category-operation","category-php","tag-crud-operation","tag-php-captcha","tag-php-code","tag-php-crud-form","tag-php-crud-operation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>When do you get two messages at the same time in php captcha form? 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\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-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=\"When do you get two messages at the same time in php captcha form? how can you fix it? - DevOps | SRE | DevSecOps\" \/>\n<meta property=\"og:description\" content=\"If you are learning PHP or making a PHP captcha form on the basis of crud operation. And if you&#8217;re clicking on a submit button then meanwhile...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.devopstrainer.in\/blog\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\/\" \/>\n<meta property=\"og:site_name\" content=\"DevOps | SRE | DevSecOps\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-23T10:02:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/crud-messages-1024x514.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\\\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\\\/\"},\"author\":{\"name\":\"rahulkr kr\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/#\\\/schema\\\/person\\\/e9fd1d88de76754aa189257cd197394d\"},\"headline\":\"When do you get two messages at the same time in php captcha form? how can you fix it?\",\"datePublished\":\"2022-11-23T10:02:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\\\/\"},\"wordCount\":169,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/crud-messages-1024x514.png\",\"keywords\":[\"crud operation\",\"PHP captcha\",\"PHP code\",\"PHP crud form\",\"PHP crud operation\"],\"articleSection\":[\"CRUD\",\"Function\",\"Operation\",\"PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\\\/\",\"url\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\\\/\",\"name\":\"When do you get two messages at the same time in php captcha form? how can you fix it? - DevOps | SRE | DevSecOps\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/crud-messages-1024x514.png\",\"datePublished\":\"2022-11-23T10:02:15+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/#\\\/schema\\\/person\\\/e9fd1d88de76754aa189257cd197394d\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/crud-messages.png\",\"contentUrl\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/crud-messages.png\",\"width\":1322,\"height\":663},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.devopstrainer.in\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"When do you get two messages at the same time in php captcha form? 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":"When do you get two messages at the same time in php captcha form? 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\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\/","og_locale":"en_US","og_type":"article","og_title":"When do you get two messages at the same time in php captcha form? how can you fix it? - DevOps | SRE | DevSecOps","og_description":"If you are learning PHP or making a PHP captcha form on the basis of crud operation. And if you&#8217;re clicking on a submit button then meanwhile...","og_url":"https:\/\/www.devopstrainer.in\/blog\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\/","og_site_name":"DevOps | SRE | DevSecOps","article_published_time":"2022-11-23T10:02:15+00:00","og_image":[{"url":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/crud-messages-1024x514.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\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\/#article","isPartOf":{"@id":"https:\/\/www.devopstrainer.in\/blog\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\/"},"author":{"name":"rahulkr kr","@id":"https:\/\/www.devopstrainer.in\/blog\/#\/schema\/person\/e9fd1d88de76754aa189257cd197394d"},"headline":"When do you get two messages at the same time in php captcha form? how can you fix it?","datePublished":"2022-11-23T10:02:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.devopstrainer.in\/blog\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\/"},"wordCount":169,"commentCount":0,"image":{"@id":"https:\/\/www.devopstrainer.in\/blog\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/crud-messages-1024x514.png","keywords":["crud operation","PHP captcha","PHP code","PHP crud form","PHP crud operation"],"articleSection":["CRUD","Function","Operation","PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.devopstrainer.in\/blog\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.devopstrainer.in\/blog\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\/","url":"https:\/\/www.devopstrainer.in\/blog\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\/","name":"When do you get two messages at the same time in php captcha form? how can you fix it? - DevOps | SRE | DevSecOps","isPartOf":{"@id":"https:\/\/www.devopstrainer.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.devopstrainer.in\/blog\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\/#primaryimage"},"image":{"@id":"https:\/\/www.devopstrainer.in\/blog\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/crud-messages-1024x514.png","datePublished":"2022-11-23T10:02:15+00:00","author":{"@id":"https:\/\/www.devopstrainer.in\/blog\/#\/schema\/person\/e9fd1d88de76754aa189257cd197394d"},"breadcrumb":{"@id":"https:\/\/www.devopstrainer.in\/blog\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.devopstrainer.in\/blog\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.devopstrainer.in\/blog\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\/#primaryimage","url":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/crud-messages.png","contentUrl":"https:\/\/www.devopstrainer.in\/blog\/wp-content\/uploads\/2022\/11\/crud-messages.png","width":1322,"height":663},{"@type":"BreadcrumbList","@id":"https:\/\/www.devopstrainer.in\/blog\/when-do-you-get-two-messages-at-the-same-time-in-php-captcha-form-how-can-you-fix-it\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.devopstrainer.in\/blog\/"},{"@type":"ListItem","position":2,"name":"When do you get two messages at the same time in php captcha form? 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\/709","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=709"}],"version-history":[{"count":1,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/posts\/709\/revisions"}],"predecessor-version":[{"id":711,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/posts\/709\/revisions\/711"}],"wp:attachment":[{"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/media?parent=709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/categories?post=709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopstrainer.in\/blog\/wp-json\/wp\/v2\/tags?post=709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}