You probably already know that adding the keyword multiple and select fields lets …users choose from a list of multiple options, but that's not the only place …you can use that. In HTML five this works for the email and …for the file input fields as well. So, let's take a look at how that works. …Here's a form that asks the user for a name, an email address, and to upload a file. …If I try to type two email addresses here, and I try to submit this field, …it's going to give me an error because it doesn't see two different emails as a …valid email address. Also, if I click right here to choose a …file, I'm going to go to the desktop. I can only choose one file at a time.…
Even if I hold down my multiple file keyboard shortcuts like Command on a Mac …or Control on a PC. So, let's go into the code for this, …right here. I'm going to add the keyword multiple, …into the Input Type email field. I'm going to say Save, and I'll go back …into my form. I'll refresh it and I'll try typing two …emails now. And now it takes it just fine. …
- 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
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.