- View Offline
- Exercise Files
Now that we have our database and tables ready, and we've created a file to store …our database log in information, we're ready to push information from our form …into our database. Now, if you've got your server set to …display notices and warnings, you might notice some notices if people don't fill …out some fields. So before I do anything, I'm going to …clean up that by assigning an empty value to anything that comes across with no data. …So I'm going to go into my process.php file and right at the very top, you'll …see that if these values come in our set, then we assign them to variables. …But if they're not set, they can be empty.…
And sometimes that causes a PHP notice. It's not really a big deal. …In production you should never have your notices turned on, but in development you …may have them on, and they may be annoying you. …So, I'm going to show you how to get rid of that. …And what you want to do is, essentially add else right here, and then just set …whatever variable you have. So in this case it will be my name to an …
- 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.