Web Hosting Talk







View Full Version : Request for a simple Javascript form validator


Geoff H
09-05-2004, 04:19 PM
Hey everyone!

I'm in need of a very simple form validator to check on two text inputs: a name, and an e-mail address (it's for a mailing list sign-up form).
Basically, I just need the validator to check that a name was entered, and then that a valid e-mail address was entered (ie: with an "@" sign, a ".", and text characters in the appropriate spots).

Does anyone know of a ready-made script out there that I could use (I've searched, but haven't found anything suitably simple)?

Thanks!

barrywien
09-05-2004, 04:48 PM
Try javafile.com, or hotscripts.com, cant really be more specific as its down to how you want it to function, many available on the above links however.

xelav
09-06-2004, 03:33 AM
use regexps - they are easy to use
there are many tutors on them
try and experiment :)