J
Joop
I'm working on some PHP code that will accept date (yyyy-mm-dd) and
timestamp (yyyy-mm-dd hh:mm:ss) from an HTML form. A plain <input
type="text"> is too simple, my users will get it wrong each time. Now I'm
making separate inputs for the yyyy, mmm etc. parts which is IMO too
unelegant programming when you have to glue it together after the
submission.
Ideal would be something like this:
<input type="text" format="9999-99-99">
Is this possible in HTML 4 without javascript tricks? TIA!
timestamp (yyyy-mm-dd hh:mm:ss) from an HTML form. A plain <input
type="text"> is too simple, my users will get it wrong each time. Now I'm
making separate inputs for the yyyy, mmm etc. parts which is IMO too
unelegant programming when you have to glue it together after the
submission.
Ideal would be something like this:
<input type="text" format="9999-99-99">
Is this possible in HTML 4 without javascript tricks? TIA!