View Full Version : how to validate forms
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?
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...
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.