I have a date picker JS that outputs the date into the inputField, how do I go about putting that value into a variable as I want to insert it into my database, when I hit submit?
I would assume in my insert statement I would use, INSERT INTO xxxx (id, date) VALUES ($_POST['id'], ANDTHENSOMETHINGHERE)
    <input type="text" size="12" name="datefield"  id="inputField" />
  <?php $datefield = $_POST['datefield'];
  echo $datefield;
  ?>
Above is what I am thinking? but I know I am wrong
 
    