JavaScript Form Validation


Note: The First Validation (with the String and Pattern) does not work on Netscape. (at least the one I tested it on) One Part of the second Validation also does work with Netscape. The Telephone Validation works with Explorer but not Netscape. Problem is something to do with Regular Expressions. Don't ask me why though! What do you think I am? A Member of the Psychic Hotline? How am I supposed to know?

UPDATE:  October 18, 2000 - Fixed the Problems with both examples using Nescape. Problem was the I had but Compare.result.value instead of document.Compare.result.value. And also had put Javascript 1.2 for some reason and the string.replace function wasn't working because of it.

String

$1

Pattern

$2

Result

$3



LastName:

FirstName:

Address:

Telephone #:

Credit Card #:





Back To Home