Now that we know how to access variables, let's take a look at how we would …validate data in different ways. I'm going to show you how to check for a …required field, a minimum number of characters, make sure that our passwords …match, and use regular expressions for validation. …So, I'm going to set up some variables in my process.php file. …I'm using the files from the previous movie, so I'm going to go ahead and …delete everything right here. And start by creating some variables. …The input fields that we're going to work with are: the name field, the password …field, and the password confirmation field.…
So I'll create variables for those. I'll check the request, that we got from …the server, and look for the variable, my name, from the form. …I can do the same thing for the password and the password confirmation. …The easiest type of validation to do is check for required field. …All you have to do is make sure that the string is not empty. …So, let's do that with the name. So if the name is empty, I'm going to …
- Understanding forms
- Adding required fields and placeholders
- Accepting multiple entries
- Limiting uploads
- Handling focus changes
- Validating with regular expressions
- Working with older browsers
- Building jQuery validation
- Using server-side validation
- Sanitizing form input
- Uploading files
- Sending form data to a database
Skill Level Intermediate
Managing and Analyzing Data in Excel 2010with Dennis Taylor1h 32m Appropriate for all
1. Getting Started
2. Validating with HTML5
4. jQuery Form Validation
Understanding jQuery3m 47s
5. Working with PHP
6. Processing Form Data
Next steps1m 17s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.