date validation in form

P

Pierre

Hi all,
On a form i ask the birth date.

What is the easiest way to format and check the good
format like mm-dd-yyyy

I can't see any data type i have number, integer, text only

or show me some place with example

regards,

Pierre
 
R

Ronx

One way is to use three fields to get the date, using dropdowns
preferably for the month, day and year. The resulting selections can
be validated (30 February is not valid) and concatenated into a hidden
field using JavaScript or processed by a server side script.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top