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
Printable View
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
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.
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
a