Forms --- Field Validation

C

carolpm

I am working on creating a Form (that will be emailed back to the web site
holder) on a Contact Us page that has fields such as:

First Name
Last Name
Email Address
Phone No.

1. I know how to validate the First Name and Last Name fields but how do you
use the validation process to validate the email address format of (e-mail address removed) or
the Phone No. format of (xxx) xxx.xxxx ? --- Can this type of field
validation be done, I thought I have seen it being done on other web sites ?

2. Also how can you set up the form so if there is a field error you have an
immediate validation edit box pop up as you tab from field to field instead
of having to wait for all of them to pop up one at time when you click on the
Submit button ?

Any help will really be appreciated.

Thank you,
Paul
 
S

Stefan B Rusynko

Try http://www.4guysfromrolla.com/webtech/091998-1.shtml#postadlink

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I am working on creating a Form (that will be emailed back to the web site
| holder) on a Contact Us page that has fields such as:
|
| First Name
| Last Name
| Email Address
| Phone No.
|
| 1. I know how to validate the First Name and Last Name fields but how do you
| use the validation process to validate the email address format of (e-mail address removed) or
| the Phone No. format of (xxx) xxx.xxxx ? --- Can this type of field
| validation be done, I thought I have seen it being done on other web sites ?
|
| 2. Also how can you set up the form so if there is a field error you have an
| immediate validation edit box pop up as you tab from field to field instead
| of having to wait for all of them to pop up one at time when you click on the
| Submit button ?
|
| Any help will really be appreciated.
|
| Thank you,
| Paul
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top