I have a register page that has 3 drop down boxes for day month and year
these are set up for day in number format – (1-31) month (01-12) and year (1993)ect.
Now I’m having issues putting it to timestamp.
Tried:
$day = $_POST['day'];
$month = $_POST['month'];
$year = $_POST['year'];
$Dob = strtotime($month . " " . $day . " " . $year);
But its not giving me any output :(. do I need to have the day month year organised in a special way?
try
Aside from that, three
<select>s for date-input are very 1998ish. Why not use<input type="date">instead? This allows browsers to pop up a date-picker (which can be polyfilled).