So let's take a minute to talk about how file uploads work between forms and PHP. …In addition to capturing regular text data, a form can also send a file into a …folder on your server using PHP. In order for this to work, the form has …to use the multipart/form-data enctype. This is part of your form tag. …Because get methods are limited to the size that's allowed when sending data …through a URL, you should use the post method if you're uploading files from a form. …You can include the accept attribute inside the input field to limit the MIME …type of the file you're uploading. If you have any questions about this make …sure you check out the movie on Limiting Uploads by MIME Types.…
When uploading files, you can use an optional hidden field with the name of …Max File Size that PHP commands will try to recognize. …So for example this input field tells PHP that this file should be no bigger than …about 30K. One note, this hidden input field has to …be placed before the file input field. Once a form is submitted, PHP stores …
- 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.