title: Get value of date picker in PHP code
body: <p>I have a form that contains a date picker. The date picker works fine, but when I want to submit its value to the PHP script it, doesn't show. Here is the relevant part of my HTML code:</p>
  
  <pre><code>&lt;body&gt;
      &lt;form action="sub.php" method="post"&gt;
          &lt;h2&gt;JsDatePick's Javascript Calendar usage example&lt;/h2&gt;
  
          Look at the comments on the HTML source to fully understand how this very simple example works.
  
          &lt;input type="text" size="12" id="inputField" name="inputField" /&gt;
          &lt;input type="submit" value="submit"&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>And I want to pick the date value from <code>inputField</code> in this script:</p>
  
  <pre><code>&lt;?php
      echo $date=$_POST['inputField'];
  ?&gt;
  </code></pre>
  
  <p>So can you guys tell me how can I get this value from the HTML to the PHP script? I did not show the code of the date picker because that works fine. Thanks in advance. </p>