Hi,
I am using a javascript date picker on a form. When the user selects a date it is displayed in a text box. Right now when the form is submitted the date is not being inserted into the database.
Here is the code for the textbox:
<div name="date" type="text" id="myDatePickerDiv"></div>
Here is the Handle Code:
$date = mysql_real_escape_string($_POST["date"]);
$query = mysql_query("INSERT INTO test (`date`) VALUES ('$date')");
THanks,
I am using a javascript date picker on a form. When the user selects a date it is displayed in a text box. Right now when the form is submitted the date is not being inserted into the database.
Here is the code for the textbox:
<div name="date" type="text" id="myDatePickerDiv"></div>
Here is the Handle Code:
$date = mysql_real_escape_string($_POST["date"]);
$query = mysql_query("INSERT INTO test (`date`) VALUES ('$date')");
THanks,