...

View Full Version : how to validate forms



xiaodao
12-12-2004, 04:53 AM
well,i got two field one is icq and another one is age, how can i validate them to be numbers?
also for the email got good validate script?

Willy Duitt
12-12-2004, 06:58 AM
Use either isNaN() or a regular expression match(/^\d$/g) to validate for numbers only...

Search the forum for email validation scripts...
There are numerous regular expression examples as well as subString() methods which have been posted in the past...

.....Willy



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum