PDA

View Full Version : How to require fields to be filled in..???



joshuayork
05-08-2008, 08:09 AM
I really new to this...
I am practicing html and I dont know how to work with this,
How can I require that fields be filled in, or filled in correctly?
example: the field must be filled by email add ,state , phone number

Mike Empuria
05-08-2008, 12:10 PM
To require that fields are filled in or filled in correctly you need to use some code; Javascript or PHP are the most commonly used.

fatnewt
05-08-2008, 04:41 PM
True story. You can't do it with HTML alone.

Usually it's done by the same tool that ultimately processes the form, but if your form goes off-site to a hosted service, you're probably stuck using JavaScript to validate the form before you send.

Here's one example of JavaScript validation:
http://www.w3schools.com/js/js_form_validation.asp

cothse
05-19-2008, 10:06 PM
a