I have created an appointment form and I would like the user to request a date. However, when the end-user uses the form in IE, the date will not go into my database.
Form: <input type="date" name="date" value size="35">
In my database I have my column setup as “date”.
Does anyone know how to fix this problem so the date will input into the database.
My php to send the data to my database for the date is $_POST[date],
If I use Chrome, the date goes into the database without any issues.
This suggests to me that it is not a PHP problem but a JavaScript one… potentially there is an incompatible script that fails for IE… but I would not really know without being able to look at the site or the code, do you have a link by any chance?
It might actually be that the version of IE does not support the date input. Take a look at this thread:
I think it might contain some useful information and you should be able to fix it with a polyfill.