...

View Full Version : Form validation using ASP



jerusking
01-20-2007, 04:00 PM
Hi guys, is there anyone can help about the form validation using ASP?The page is a submit form and if the required field is blank, a message will popup for alerts.

Many thanks

Jerus

dev
01-21-2007, 01:06 PM
http://www.w3schools.com/js/js_form_validation.asp
u can find a sample here it might be helpfull to u.

regards
dev

jerusking
01-22-2007, 02:54 PM
Thanks dev. :-)

degsy
01-23-2007, 02:46 PM
Don't rely on client-side javascript validation. It can be disabled and then your script has no protection.

Always have server-side validation.
Here is an example using simple If/Else statements

http://computer-helpforum.com/asp/aspfree/basics/basic_form_validation.asp

diana13
02-06-2007, 07:15 PM
degsy, thanks for your example.
Indeed, if an user had JavaScript disabled, my validation script it's useless.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum