Join Candyce Mairs for an in-depth discussion in this video Form validation options, part of Dynamic Dreamweaver Websites: Creating and Validating Forms.
Now that we have our Contact Us form set up, and I'm assuming you've done everything in lessons one through five for your form. We want to start looking at the validation piece. And validation simply means we're going to have some code run, to try and make sure the user has filled out the information exactly how we want it. So I am going to open up the contact us page. This is the form we are working in and what are our validation choices.
So let me just click Submit button here, so that we can actually get some information in the Behaviors panel so I can show it to you. So I've selected the button within the form. When I do that, you can see now the plus is active. If I don't have anything selected in the form, the plus may or may not be active. So, select that button again. Now whatever you select here, is what ends up being activated within this Behaviors panel.
So there's four different ways we can validate this form, three of which are in the browser itself. The last option, server side validation, the user fills out the form, clicks the button, it sends the request back to the web server and PHP validates and sends back information to the browser to display on the page. So those are the four types of Form Validation, we're going to take a look at. And I've done a movie for each individual piece, so you can get a good overview of working in Form Validation, for any form.
- Installing XAMPP on a Windows system
- Installing MAMP on a Mac system
- Using admin consoles
- Creating PHP pages
- Commenting code
- Working with web forms
- Adding custom validation
- Using redirects
- Dealing with email issues