title: How can I insert the value from an HTML input field into MySQL?
body: <p>How can I insert the value from an  (in a form) into a MySQL date field. I'm trying this:</p>
  
  <pre><code>&lt;form  action="enviar.php" autocomplete="off" method="post"&gt; 
      &lt;label for="nacimiento" class="youpasswd" data-icon="p"&gt;
          Fecha de Nacimiento
      &lt;/label&gt;
      &lt;br&gt;
      &lt;input id="nacimiento" name="nacimiento"
             required type="datetime" placeholder="DD/MM/YYYY" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>enviar.php</p>
  
  <pre><code>$nacimiento= $_POST['nacimiento'];
  mysql_query("INSERT INTO voluntarios(nacimiento) VALUES ('$nacimiento')");`
  </code></pre>
  
  <p>This is working for all the other fields but not with the date field; it is empty. What am I doing wrong?</p>
  
  <p>Thank you</p>