469,271 Members | 1,356 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Show error message when form validation fails

hi.. im doing a site..
i have this registration form where the user must enter some information like
name, phone_number, age, etc..
an error message should appear if

#1: there is an empty field..
error message = "Please Complete the Form"
#2: a number was inputted in the name field..
error message = "You have entered a number"
#3: a letter was inputted in the age or phone_number field..
error message = "You have entered a letter"

i am not familiar with scripting but since it is needed in the site, i have no choice.. thanks for your future replies..
Feb 26 '08 #1
2 2637
hsriat
1,654 Expert 1GB
hi.. im doing a site..
i have this registration form where the user must enter some information like
name, phone_number, age, etc..
an error message should appear if

#1: there is an empty field..
error message = "Please Complete the Form"
#2: a number was inputted in the name field..
error message = "You have entered a number"
#3: a letter was inputted in the age or phone_number field..
error message = "You have entered a letter"

i am not familiar with scripting but since it is needed in the site, i have no choice.. thanks for your future replies..
You need this .. JavaScript form validation
Feb 26 '08 #2
acoder
16,027 Expert Mod 8TB
Also check out the form validation links in the Off-site Links (sticky) thread.
Feb 26 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

20 posts views Thread by WindAndWaves | last post: by
3 posts views Thread by Gary Varga | last post: by
7 posts views Thread by Ryan Ternier | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.