Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
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.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 97270 Viewers
61 Video lessons · 84542 Viewers
71 Video lessons · 68741 Viewers
56 Video lessons · 101233 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.