Saturday, 31 October 2020

sfdfdfdf

 <img src="https://www.legendblogs.com/images/products/121746_1520433026_form_data_with_ajax.jpg" style="display: block; margin-left: auto; margin-right: auto;"><p></p><p style="font-size: 16px; box-sizing: border-box; margin: 1em 0px 2em; font-family: &quot;open sans&quot;; color: rgb(68, 68, 68); letter-spacing: 0.5px; text-align: justify;">Send form data with ajax, Yes now&nbsp;I&nbsp;am going to introduce one more thing for Ajax. The point is "How to submit additional parameter to the Ajax page with form-data". Yes, you can do that in&nbsp;jquery&nbsp;Ajax with the append method.</p><p style="font-size: 16px; box-sizing: border-box; margin: 1em 0px 2em; font-family: &quot;open sans&quot;; color: rgb(68, 68, 68); letter-spacing: 0.5px; text-align: justify;">Sometimes programmers require to send adding key and value to an Ajax page which is not in form, that time this method is helpful. So what should I do?</p><h2 style="box-sizing: border-box; font-family: &quot;open sans&quot;; line-height: 1.1; color: rgb(32, 33, 36); margin: 35px 0px 0.6em; font-size: 30px; letter-spacing: 0.5px; text-align: justify;">Sending form data</h2><p style="font-size: 16px; box-sizing: border-box; margin: 1em 0px 2em; font-family: &quot;open sans&quot;; color: rgb(68, 68, 68); letter-spacing: 0.5px; text-align: justify;">Now, let's start with the submit the form using ajax JavaScript. I'll also discuss the jQuery ajax serialize form data for example.</p><p class="has-text-color has-background has-text-align-center has-medium-font-size has-vivid-purple-color has-very-light-gray-background-color" style="box-sizing: border-box; margin: 1em 0px 2em; font-family: &quot;open sans&quot;; font-size: 20px; text-align: center; color: rgb(155, 81, 224); letter-spacing: 0.5px; padding: 20px 30px; background-color: rgb(238, 238, 238);"><a href="https://www.legendblogs.com/laravel-project-with-admin-panel-for-blogging" style="box-sizing: border-box; background-color: transparent; text-decoration-line: none; transition: all 0.5s ease 0s;">How to start a Blog?</a></p><div class="" style="font-size: 16px; box-sizing: border-box; color: rgb(68, 68, 68); font-family: &quot;open sans&quot;; letter-spacing: 0.5px; text-align: justify;"></div><p style="font-size: 16px; box-sizing: border-box; margin: 1em 0px 2em; font-family: &quot;open sans&quot;; color: rgb(68, 68, 68); letter-spacing: 0.5px; text-align: justify;">When you create your&nbsp;<a href="https://api.jquery.com/jQuery.ajax/" style="box-sizing: border-box; background-color: transparent; color: rgb(241, 99, 51); text-decoration-line: none; transition: all 0.5s ease 0s;">Ajax</a>&nbsp;page you need to implement new&nbsp;<span style="box-sizing: border-box; font-weight: 700;">FormData</span>&nbsp;(this) to send the form to another page, now that time you require append you add on data with this.</p><pre class="wp-block-code language-javascript code-toolbar" style="box-sizing: border-box; overflow: auto; font-family: Consolas, Monaco, &quot;andale mono&quot;, &quot;ubuntu mono&quot;, monospace; font-size: 14px; padding: 1em; margin-top: 0.5em; margin-bottom: 0.5em; line-height: 1.5; word-break: normal; overflow-wrap: normal; background: rgb(245, 242, 240); border: 1px solid rgb(226, 228, 231); border-radius: 4px; text-shadow: rgb(255, 255, 255) 0px 1px; tab-size: 4; hyphens: none; position: relative; letter-spacing: 0.5px;"><code class=" language-javascript" style="box-sizing: border-box; font-family: Consolas, Monaco, &quot;andale mono&quot;, &quot;ubuntu mono&quot;, monospace; font-size: inherit; padding: 0px; background: 0px 0px; border-radius: 0px; text-shadow: rgb(255, 255, 255) 0px 1px; word-spacing: normal; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4; hyphens: none;"><span class="token keyword keyword-var" style="box-sizing: border-box; color: rgb(0, 119, 170);">var</span> formData <span class="token operator" style="box-sizing: border-box; color: rgb(166, 127, 89); background: rgba(255, 255, 255, 0.5);">=</span> <span class="token keyword keyword-new" style="box-sizing: border-box; color: rgb(0, 119, 170);">new</span> <span class="token class-name" style="box-sizing: border-box;">FormData</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token keyword keyword-this" style="box-sizing: border-box; color: rgb(0, 119, 170);">this</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

formData<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">.</span><span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">append</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span>KET<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span> PARAMETER<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span></code><div class="toolbar" style="box-sizing: border-box; position: absolute; top: 0.3em; right: 0.2em; transition: opacity 0.3s ease-in-out 0s; opacity: 0;"></div></pre><h3 style="box-sizing: border-box; font-family: &quot;open sans&quot;; line-height: 1.1; color: rgb(32, 33, 36); margin: 35px 0px 0.6em; font-size: 24px; letter-spacing: 0.5px; text-align: justify;">Rendering the form in HTML</h3><p style="font-size: 16px; box-sizing: border-box; margin: 1em 0px 2em; font-family: &quot;open sans&quot;; color: rgb(68, 68, 68); letter-spacing: 0.5px; text-align: justify;">Ok, First you have to create your form as previous you have created.</p><p style="font-size: 16px; box-sizing: border-box; margin: 1em 0px 2em; font-family: &quot;open sans&quot;; color: rgb(68, 68, 68); letter-spacing: 0.5px; text-align: justify;"></p><pre class="wp-block-code language-markup code-toolbar" style="box-sizing: border-box; overflow: auto; font-family: Consolas, Monaco, &quot;andale mono&quot;, &quot;ubuntu mono&quot;, monospace; font-size: 14px; padding: 1em; margin-top: 0.5em; margin-bottom: 0.5em; line-height: 1.5; word-break: normal; overflow-wrap: normal; background: rgb(245, 242, 240); border: 1px solid rgb(226, 228, 231); border-radius: 4px; text-shadow: rgb(255, 255, 255) 0px 1px; tab-size: 4; hyphens: none; position: relative; letter-spacing: 0.5px;"><code class=" language-markup" style="box-sizing: border-box; font-family: Consolas, Monaco, &quot;andale mono&quot;, &quot;ubuntu mono&quot;, monospace; font-size: inherit; padding: 0px; background: 0px 0px; border-radius: 0px; text-shadow: rgb(255, 255, 255) 0px 1px; word-spacing: normal; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4; hyphens: none;">       <span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>form</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">id</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>sendFormData<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>div</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>form-group<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>label</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">for</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>Name<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>Name<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>label</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>input</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">type</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>text<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">placeholder</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>Name<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>form-control<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">name</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>name<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">required</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>div</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>div</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>form-group<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>label</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">for</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>Email<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>Email address<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>label</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>input</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">type</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>email<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">placeholder</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>Email<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>form-control<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">name</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>email<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">required</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>div</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>div</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>form-check<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>input</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">type</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>checkbox<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>form-check-input<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">name</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>check<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">required</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>label</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>form-check-label<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">for</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>exampleCheck1<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>Check me<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>label</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>div</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>div</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>statusMsg<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span><span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>div</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>input</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">type</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>submit<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">name</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>submit<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>btn btn-danger<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">value</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>Submit<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">/&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>form</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span></code><div class="toolbar" style="box-sizing: border-box; position: absolute; top: 0.3em; right: 0.2em; transition: opacity 0.3s ease-in-out 0s; opacity: 0;"></div></pre><h3 style="box-sizing: border-box; font-family: &quot;open sans&quot;; line-height: 1.1; color: rgb(32, 33, 36); margin: 35px 0px 0.6em; font-size: 24px; letter-spacing: 0.5px; text-align: justify;">Form Submit Logic in JavaScript - JQuery</h3><p style="font-size: 16px; box-sizing: border-box; margin: 1em 0px 2em; font-family: &quot;open sans&quot;; color: rgb(68, 68, 68); letter-spacing: 0.5px; text-align: justify;">Second, you have to create your java script code like this:</p><div class="" style="font-size: 16px; box-sizing: border-box; color: rgb(68, 68, 68); font-family: &quot;open sans&quot;; letter-spacing: 0.5px; text-align: justify;"></div><pre class="wp-block-code language-javascript code-toolbar" style="box-sizing: border-box; overflow: auto; font-family: Consolas, Monaco, &quot;andale mono&quot;, &quot;ubuntu mono&quot;, monospace; font-size: 14px; padding: 1em; margin-top: 0.5em; margin-bottom: 0.5em; line-height: 1.5; word-break: normal; overflow-wrap: normal; background: rgb(245, 242, 240); border: 1px solid rgb(226, 228, 231); border-radius: 4px; text-shadow: rgb(255, 255, 255) 0px 1px; tab-size: 4; hyphens: none; position: relative; letter-spacing: 0.5px;"><code class=" language-javascript" style="box-sizing: border-box; font-family: Consolas, Monaco, &quot;andale mono&quot;, &quot;ubuntu mono&quot;, monospace; font-size: inherit; padding: 0px; background: 0px 0px; border-radius: 0px; text-shadow: rgb(255, 255, 255) 0px 1px; word-spacing: normal; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4; hyphens: none;"><span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">$</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span>document<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">.</span><span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">ready</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token keyword keyword-function" style="box-sizing: border-box; color: rgb(0, 119, 170);">function</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span>e<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">{</span>

<span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">$</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">"#sendFormData"</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">.</span><span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">on</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">'submit'</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span> <span class="token keyword keyword-function" style="box-sizing: border-box; color: rgb(0, 119, 170);">function</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span>e<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">{</span>

e<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">.</span><span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">preventDefault</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

<span class="token keyword keyword-var" style="box-sizing: border-box; color: rgb(0, 119, 170);">var</span> formData <span class="token operator" style="box-sizing: border-box; color: rgb(166, 127, 89); background: rgba(255, 255, 255, 0.5);">=</span> <span class="token keyword keyword-new" style="box-sizing: border-box; color: rgb(0, 119, 170);">new</span> <span class="token class-name" style="box-sizing: border-box;">FormData</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token keyword keyword-this" style="box-sizing: border-box; color: rgb(0, 119, 170);">this</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

formData<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">.</span><span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">append</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">'action'</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span> <span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">'savadata'</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

$<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">.</span><span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">ajax</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">{</span>

type<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">:</span> <span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">'POST'</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span>

url<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">:</span> <span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">'ajax_page.php'</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span>

data<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">:</span> formData<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span>

contentType<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">:</span> <span class="token boolean" style="box-sizing: border-box; color: rgb(153, 0, 85);">false</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span>

cache<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">:</span> <span class="token boolean" style="box-sizing: border-box; color: rgb(153, 0, 85);">false</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span>

processData<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">:</span><span class="token boolean" style="box-sizing: border-box; color: rgb(153, 0, 85);">false</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span>

success<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">:</span> <span class="token keyword keyword-function" style="box-sizing: border-box; color: rgb(0, 119, 170);">function</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span>data<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">{</span>

<span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">alert</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span>data<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">}</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span>

complete<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">:</span> <span class="token keyword keyword-function" style="box-sizing: border-box; color: rgb(0, 119, 170);">function</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">{</span>

<span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">alert</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">"Data uploaded successfully."</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">}</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span>

error<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">:</span> <span class="token keyword keyword-function" style="box-sizing: border-box; color: rgb(0, 119, 170);">function</span> <span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span>jqXHR<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span> textStatus<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span> errorThrown<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span> <span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">{</span>

<span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">alert</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">"Some problem occurred, please try again."</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">}</span>

<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">}</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">}</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">}</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span></code><div class="toolbar" style="box-sizing: border-box; position: absolute; top: 0.3em; right: 0.2em; transition: opacity 0.3s ease-in-out 0s; opacity: 0;"></div></pre><p style="font-size: 16px; box-sizing: border-box; margin: 1em 0px 2em; font-family: &quot;open sans&quot;; color: rgb(68, 68, 68); letter-spacing: 0.5px; text-align: justify;">Third, your Ajax page will receive these values as normally with:</p><pre class="wp-block-code language-php code-toolbar" style="box-sizing: border-box; overflow: auto; font-family: Consolas, Monaco, &quot;andale mono&quot;, &quot;ubuntu mono&quot;, monospace; font-size: 14px; padding: 1em; margin-top: 0.5em; margin-bottom: 0.5em; line-height: 1.5; word-break: normal; overflow-wrap: normal; background: rgb(245, 242, 240); border: 1px solid rgb(226, 228, 231); border-radius: 4px; text-shadow: rgb(255, 255, 255) 0px 1px; tab-size: 4; hyphens: none; position: relative; letter-spacing: 0.5px;"><code class=" language-php" style="box-sizing: border-box; font-family: Consolas, Monaco, &quot;andale mono&quot;, &quot;ubuntu mono&quot;, monospace; font-size: inherit; padding: 0px; background: 0px 0px; border-radius: 0px; text-shadow: rgb(255, 255, 255) 0px 1px; word-spacing: normal; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4; hyphens: none;"><span class="token global" style="box-sizing: border-box;">$_POST</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">[</span><span class="token constant" style="box-sizing: border-box; color: rgb(153, 0, 85);">KEY</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">]</span></code><div class="toolbar" style="box-sizing: border-box; position: absolute; top: 0.3em; right: 0.2em; transition: opacity 0.3s ease-in-out 0s; opacity: 0;"></div></pre><p style="font-size: 16px; box-sizing: border-box; margin: 1em 0px 2em; font-family: &quot;open sans&quot;; color: rgb(68, 68, 68); letter-spacing: 0.5px; text-align: justify;">Now, finally your code should be:</p><p class="has-text-color has-background has-text-align-center has-medium-font-size has-vivid-purple-color has-very-light-gray-background-color" style="box-sizing: border-box; margin: 1em 0px 2em; font-family: &quot;open sans&quot;; font-size: 20px; text-align: center; color: rgb(155, 81, 224); letter-spacing: 0.5px; padding: 20px 30px; background-color: rgb(238, 238, 238);"><a href="https://www.legendblogs.com/top-50-mysql-interview-questions-and-answers" style="box-sizing: border-box; background-color: transparent; text-decoration-line: none; transition: all 0.5s ease 0s;">Top 50 MySQL Interview Questions and Answers</a></p><h3 style="box-sizing: border-box; font-family: &quot;open sans&quot;; line-height: 1.1; color: rgb(32, 33, 36); margin: 35px 0px 0.6em; font-size: 24px; letter-spacing: 0.5px; text-align: justify;">Final Thoughts</h3><pre class="wp-block-code language-markup code-toolbar" style="box-sizing: border-box; overflow: auto; font-family: Consolas, Monaco, &quot;andale mono&quot;, &quot;ubuntu mono&quot;, monospace; font-size: 14px; padding: 1em; margin-top: 0.5em; margin-bottom: 0.5em; line-height: 1.5; word-break: normal; overflow-wrap: normal; background: rgb(245, 242, 240); border: 1px solid rgb(226, 228, 231); border-radius: 4px; text-shadow: rgb(255, 255, 255) 0px 1px; tab-size: 4; hyphens: none; position: relative; letter-spacing: 0.5px;"><code class=" language-markup" style="box-sizing: border-box; font-family: Consolas, Monaco, &quot;andale mono&quot;, &quot;ubuntu mono&quot;, monospace; font-size: inherit; padding: 0px; background: 0px 0px; border-radius: 0px; text-shadow: rgb(255, 255, 255) 0px 1px; word-spacing: normal; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4; hyphens: none;"><span class="token doctype" style="box-sizing: border-box; color: rgb(112, 128, 144);">&lt;!DOCTYPE html&gt;</span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>html</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">lang</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>en<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>head</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>title</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>Send form data to ajax page with additional parameter<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>title</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>meta</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">charset</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>utf-8<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>meta</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">name</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>viewport<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">content</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>width<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span>device-width, initial-scale<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span>1<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>link</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">rel</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>stylesheet<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">href</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span><a class="token url-link" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" style="box-sizing: border-box; background-color: transparent; color: rgb(241, 99, 51); text-decoration-line: none; transition: all 0.5s ease 0s;">https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css</a><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>script</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">src</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span><a class="token url-link" href="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js" style="box-sizing: border-box; background-color: transparent; color: rgb(241, 99, 51); text-decoration-line: none; transition: all 0.5s ease 0s;">https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js</a><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span><span class="token script language-javascript" style="box-sizing: border-box;"></span><span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>script</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>script</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">src</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span><a class="token url-link" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" style="box-sizing: border-box; background-color: transparent; color: rgb(241, 99, 51); text-decoration-line: none; transition: all 0.5s ease 0s;">https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js</a><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span><span class="token script language-javascript" style="box-sizing: border-box;"></span><span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>script</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>head</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>body</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>div</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>container<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>h2</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>text-info<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>Send form data to ajax page with additional parameter<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>h2</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>div</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>col-md-6<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>form</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">id</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>sendFormData<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>div</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>form-group<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>label</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">for</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>Name<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>Name<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>label</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>input</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">type</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>text<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">placeholder</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>Name<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>form-control<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">name</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>name<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">required</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>div</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>div</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>form-group<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>label</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">for</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>Email<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>Email address<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>label</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>input</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">type</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>email<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">placeholder</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>Email<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>form-control<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">name</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>email<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">required</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>div</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>div</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>form-check<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>input</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">type</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>checkbox<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>form-check-input<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">name</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>check<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">required</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>label</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>form-check-label<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">for</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>exampleCheck1<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>Check me<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>label</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>div</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>div</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>statusMsg<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span><span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>div</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>input</span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">type</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>submit<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">name</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>submit<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">class</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>btn btn-danger<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span> <span class="token attr-name" style="box-sizing: border-box; color: rgb(102, 153, 0);">value</span><span class="token attr-value" style="box-sizing: border-box; color: rgb(0, 119, 170);"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">=</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span>Submit<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">"</span></span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">/&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>form</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>div</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>div</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>body</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>html</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span>

<span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;</span>script</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span><span class="token script language-javascript" style="box-sizing: border-box;">

<span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">$</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span>document<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">.</span><span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">ready</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token keyword keyword-function" style="box-sizing: border-box; color: rgb(0, 119, 170);">function</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span>e<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">{</span>

<span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">$</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">"#sendFormData"</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">.</span><span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">on</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">'submit'</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span> <span class="token keyword keyword-function" style="box-sizing: border-box; color: rgb(0, 119, 170);">function</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span>e<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">{</span>

e<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">.</span><span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">preventDefault</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

<span class="token keyword keyword-var" style="box-sizing: border-box; color: rgb(0, 119, 170);">var</span> formData <span class="token operator" style="box-sizing: border-box; color: rgb(166, 127, 89); background: rgba(255, 255, 255, 0.5);">=</span> <span class="token keyword keyword-new" style="box-sizing: border-box; color: rgb(0, 119, 170);">new</span> <span class="token class-name" style="box-sizing: border-box;">FormData</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token keyword keyword-this" style="box-sizing: border-box; color: rgb(0, 119, 170);">this</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

formData<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">.</span><span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">append</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">'action'</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span> <span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">'savadata'</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

$<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">.</span><span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">ajax</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">{</span>

type<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">:</span> <span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">'POST'</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span>

url<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">:</span> <span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">'ajax_page.php'</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span>

data<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">:</span> formData<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span>

contentType<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">:</span> <span class="token boolean" style="box-sizing: border-box; color: rgb(153, 0, 85);">false</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span>

cache<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">:</span> <span class="token boolean" style="box-sizing: border-box; color: rgb(153, 0, 85);">false</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span>

processData<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">:</span><span class="token boolean" style="box-sizing: border-box; color: rgb(153, 0, 85);">false</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span>

success<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">:</span> <span class="token keyword keyword-function" style="box-sizing: border-box; color: rgb(0, 119, 170);">function</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span>data<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">{</span>

<span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">alert</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span>data<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">}</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span>

complete<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">:</span> <span class="token keyword keyword-function" style="box-sizing: border-box; color: rgb(0, 119, 170);">function</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">{</span>

<span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">alert</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">"Data uploaded successfully."</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">}</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span>

error<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">:</span> <span class="token keyword keyword-function" style="box-sizing: border-box; color: rgb(0, 119, 170);">function</span> <span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span>jqXHR<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span> textStatus<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">,</span> errorThrown<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span> <span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">{</span>

<span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">alert</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">"Some problem occurred, please try again."</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">}</span>

<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">}</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">}</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">}</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

</span><span class="token tag" style="box-sizing: border-box; color: rgb(153, 0, 85);"><span class="token tag" style="box-sizing: border-box;"><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&lt;/</span>script</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">&gt;</span></span></code><div class="toolbar" style="box-sizing: border-box; position: absolute; top: 0.3em; right: 0.2em; transition: opacity 0.3s ease-in-out 0s; opacity: 0;"></div></pre><h3 style="box-sizing: border-box; font-family: &quot;open sans&quot;; line-height: 1.1; color: rgb(32, 33, 36); margin: 35px 0px 0.6em; font-size: 24px; letter-spacing: 0.5px; text-align: justify;">PHP Script</h3><p style="font-size: 16px; box-sizing: border-box; margin: 1em 0px 2em; font-family: &quot;open sans&quot;; color: rgb(68, 68, 68); letter-spacing: 0.5px; text-align: justify;"><span style="box-sizing: border-box; font-weight: 700;">ajax_page.php</span></p><div class="" style="font-size: 16px; box-sizing: border-box; color: rgb(68, 68, 68); font-family: &quot;open sans&quot;; letter-spacing: 0.5px; text-align: justify;"></div><pre class="wp-block-code language-php code-toolbar" style="box-sizing: border-box; overflow: auto; font-family: Consolas, Monaco, &quot;andale mono&quot;, &quot;ubuntu mono&quot;, monospace; font-size: 14px; padding: 1em; margin-top: 0.5em; margin-bottom: 0.5em; line-height: 1.5; word-break: normal; overflow-wrap: normal; background: rgb(245, 242, 240); border: 1px solid rgb(226, 228, 231); border-radius: 4px; text-shadow: rgb(255, 255, 255) 0px 1px; tab-size: 4; hyphens: none; position: relative; letter-spacing: 0.5px;"><code class=" language-php" style="box-sizing: border-box; font-family: Consolas, Monaco, &quot;andale mono&quot;, &quot;ubuntu mono&quot;, monospace; font-size: inherit; padding: 0px; background: 0px 0px; border-radius: 0px; text-shadow: rgb(255, 255, 255) 0px 1px; word-spacing: normal; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4; hyphens: none;"><span class="token php language-php" style="box-sizing: border-box;"><span class="token delimiter important" style="box-sizing: border-box; color: rgb(238, 153, 0); font-weight: 700;">&lt;?php</span>

<span class="token keyword keyword-if" style="box-sizing: border-box; color: rgb(0, 119, 170);">if</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token function" style="box-sizing: border-box; color: rgb(221, 74, 104);">isset</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token global" style="box-sizing: border-box;">$_POST</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">[</span><span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">'action'</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">]</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">{</span>

<span class="token variable" style="box-sizing: border-box; color: rgb(238, 153, 0);">$action</span> <span class="token operator" style="box-sizing: border-box; color: rgb(166, 127, 89); background: rgba(255, 255, 255, 0.5);">=</span> <span class="token global" style="box-sizing: border-box;">$_POST</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">[</span><span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">'action'</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">]</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>


<span class="token keyword keyword-if" style="box-sizing: border-box; color: rgb(0, 119, 170);">if</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">(</span><span class="token variable" style="box-sizing: border-box; color: rgb(238, 153, 0);">$action</span> <span class="token operator" style="box-sizing: border-box; color: rgb(166, 127, 89); background: rgba(255, 255, 255, 0.5);">==</span> <span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">'savadata'</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">)</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">{</span>


<span class="token variable" style="box-sizing: border-box; color: rgb(238, 153, 0);">$name</span> <span class="token operator" style="box-sizing: border-box; color: rgb(166, 127, 89); background: rgba(255, 255, 255, 0.5);">=</span> <span class="token global" style="box-sizing: border-box;">$_POST</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">[</span><span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">'name'</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">]</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

<span class="token variable" style="box-sizing: border-box; color: rgb(238, 153, 0);">$email</span> <span class="token operator" style="box-sizing: border-box; color: rgb(166, 127, 89); background: rgba(255, 255, 255, 0.5);">=</span> <span class="token global" style="box-sizing: border-box;">$_POST</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">[</span><span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">'email'</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">]</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

<span class="token variable" style="box-sizing: border-box; color: rgb(238, 153, 0);">$check</span> <span class="token operator" style="box-sizing: border-box; color: rgb(166, 127, 89); background: rgba(255, 255, 255, 0.5);">=</span> <span class="token global" style="box-sizing: border-box;">$_POST</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">[</span><span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">'check'</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">]</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>


<span class="token keyword keyword-echo" style="box-sizing: border-box; color: rgb(0, 119, 170);">echo</span> <span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">"Name : "</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">.</span><span class="token variable" style="box-sizing: border-box; color: rgb(238, 153, 0);">$name</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

<span class="token keyword keyword-echo" style="box-sizing: border-box; color: rgb(0, 119, 170);">echo</span> <span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">"Email : "</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">.</span><span class="token variable" style="box-sizing: border-box; color: rgb(238, 153, 0);">$email</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

<span class="token keyword keyword-echo" style="box-sizing: border-box; color: rgb(0, 119, 170);">echo</span> <span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">"Check : "</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">.</span><span class="token variable" style="box-sizing: border-box; color: rgb(238, 153, 0);">$check</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>


<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">}</span>


<span class="token keyword keyword-else" style="box-sizing: border-box; color: rgb(0, 119, 170);">else</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">{</span>

<span class="token keyword keyword-echo" style="box-sizing: border-box; color: rgb(0, 119, 170);">echo</span> <span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">"Invalid Method!"</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">}</span>

<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">}</span>

<span class="token keyword keyword-else" style="box-sizing: border-box; color: rgb(0, 119, 170);">else</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">{</span>

<span class="token keyword keyword-echo" style="box-sizing: border-box; color: rgb(0, 119, 170);">echo</span> <span class="token string" style="box-sizing: border-box; color: rgb(102, 153, 0);">"Invalid Calling Method!"</span><span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">;</span>

<span class="token punctuation" style="box-sizing: border-box; color: rgb(153, 153, 153);">}</span>

<span class="token delimiter important" style="box-sizing: border-box; color: rgb(238, 153, 0); font-weight: 700;">?&gt;</span></span> </code></pre>" &gt;