- View Offline
- Exercise Files
So far, we've been processing the fields in a separate PHP document. …Another option is to make the form and the processor be on the same page. …That makes it easier to provide on-page feedback. …So, in this video, I'll show you how to move the form from our external script to …the current page. I'm going to make some changes to the …form first. To be a little bit more secure, I'll …change the method of this page to Post. I'll change the Action field so that the …form submits to itself. We could just use the name of this page …as the action, but I'll use another PHP superglobal called Server to make the …form submit to itself. So, right here I'm going to create a …short PHP script. It'll just echo the superglobal server …and it'll pass along as the parameter php underscore self.…
So, I'm going to save that and if I refresh my page. …So, if you take a look at the source code for this page, you can see that the …action is the same as the URL for this form. …I'm also going to modify the button at the bottom of the screen so that it …
- 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.