Find out date of birth html

Reply

Join Date: Mar 2008
Posts: 63
Reputation: sukhy_1 is an unknown quantity at this point 
Solved Threads: 3
sukhy_1 sukhy_1 is offline Offline
Junior Poster in Training

Find out date of birth html

 
0
  #1
Mar 20th, 2008
hello i need help on my website, i need a function so that when someone enters their date of birth it displays there age in another textbox, but if the person is under 16 a message box shud appear saying u are not over age, message box shud have a ok button. i thought about doing it but ive got one form action which links to the database so if another form action is required how could it be done?? thanku

the date of bith format of textbox

<tr>
<td>Please enter your date of birth*<small>(dd/mm/yyyy</small></td>
<td><input type="text" name="DOB" maxlength="10" value="" /></td>
</tr>
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,738
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 330
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: Find out date of birth html

 
0
  #2
Mar 20th, 2008
Check this out. http://www.irt.org/script/29.htm . You can have an onblur event for the textbox and then call the function. You can validate if age < 16 in the function. If true, return false. Else continue.
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC