How to process input value from HTML form in PHP to insert into MySQL query?
<p>Consider this HTML fragment (which will run a PHP script as the form action):</p>

<pre class="lang-html prettyprint-override"><code>&lt;label class="form-label" for="dateOfBirth"&gt;Date of birth&lt;/label&gt;
&lt;input type="date" id="dob" class="field date-field dob-field"
  min="1900-01-01" max="2016-12-31" required&gt;
</code></pre>

<p>How can I get back the value of this date input in my PHP script to insert it into a MySQL query?</p>