By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,600 Members | 1,683 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,600 IT Pros & Developers. It's quick & easy.

Show error message when form validation fails

P: 35
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
Share this Question
Share on Google+
2 Replies


hsriat
Expert 100+
P: 1,654
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
Expert Mod 15k+
P: 16,027
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.