Question:
Can someone explain if validation will work for fields in a form on an HTML page.?
unalloyedcube
2006-04-17 13:16:27 UTC
I created a form that emails the information to me, but when i tested the form it didnt validate.
Five answers:
Beatmaster
2006-04-17 13:41:07 UTC
Sure. You can do it with scripting - client side or server side, though client-side scripting is preferrable to minimize on bandwith usage.

JavaScript and VBScript are commonly used client-side scripting languages.

PHP,CGI,ASP, Perl, ColdFusion and JSP are among the available server-side scripting languages.

My advice is learn JavaScript and PHP. They are both easy to learn, easy to use and there are a lot of resources out there for them.



Check out these sites for a tutorials on JavaScript/PHP/CGI/ASP

http://www.w3schools.com

http://www.echoecho.com

http://www.yourhtmlsource.com
Maddy
2006-04-17 13:42:17 UTC
there are 2 ways in which u can validate your form .

1 ) javascript

2 ) php.

----

1. javascript

its simple u have to place the validation code in the head of your html page and then simply make sure that the field name in the form match the variables validation script.

you can get validation script from www.w3schools.com.

this way the validation will be instant .



----

2. php

this is also simple on your html page form link it to a simple php scrip . in which u have defined the validation and if it validates it should email you the form . if not it will show the error and redirect you back to your html page.



hope this helps.
anonymous
2006-04-17 13:40:12 UTC
email the url to the page to dwight.stegall@gmail.com and i'll take a look at your source code to see what the problem is. i won't be back on again today though. i'll answer it tomorrow.
anonymous
2016-10-16 08:25:02 UTC
verify the information the person entered for sanity. (telephone numbers, zip codes [interior the U. S.], and so on, might desire to be numeric, dates might desire to be valid dates [no 4/31/2010], required fields can not be sparkling, and so on.)
notthateazy
2006-04-17 13:19:17 UTC
It can be done but you'll need to use ASP or CGI


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...