...

View Full Version : Prevent Numbers in a Form



AJW06
12-22-2006, 08:50 PM
can i prevent users from entering numbers into my HTML form.

whizard
12-22-2006, 10:34 PM
I'm not sure if you can do it with JavaScript, but it's probably not a good idea to anyhow, because if someone wanted to avoid the script, they could disable JS.

You can do it with PHP using regular expressions (http://us3.php.net/manual/en/ref.regex.php).

HTH,
Dan



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum