form validation
Posted: Tue Nov 03, 2009 2:19 pm
i want to vaidate the user input of a form
the form uses 3 dropdown boxes named
dobday values 1-31
dobmonth values jan-dec
dobyear values 2009 - 1900
i want to only allow people aged over 16 im guessing i will need to call current day month year and do some can of maths but havent got a clue how to structure it.
i know im using a dropdown so user can only select one of the values but i also want to double check a make sure each feild is one of the values(this help prevent people using there own forms)
so what to also check
dobday = a single or double number ranging from 1-31
dobmonth = can only be letters being between 3(shortest month) characters and 9(longest month) characters
dobyear = 4 digit number between 2009 and 1900
ive been told theres some programs that can do the form validation for me. i did find and try it but it didnt satisfy all my requirements.
can any one recomend any that could do what i am asking. i dont mind paying if it is a decent one
the form uses 3 dropdown boxes named
dobday values 1-31
dobmonth values jan-dec
dobyear values 2009 - 1900
i want to only allow people aged over 16 im guessing i will need to call current day month year and do some can of maths but havent got a clue how to structure it.
i know im using a dropdown so user can only select one of the values but i also want to double check a make sure each feild is one of the values(this help prevent people using there own forms)
so what to also check
dobday = a single or double number ranging from 1-31
dobmonth = can only be letters being between 3(shortest month) characters and 9(longest month) characters
dobyear = 4 digit number between 2009 and 1900
ive been told theres some programs that can do the form validation for me. i did find and try it but it didnt satisfy all my requirements.
can any one recomend any that could do what i am asking. i dont mind paying if it is a decent one