Page redirects allow the web server to immediately route a browser to a different page of content. You will use Your knowledge about changing HTTP headers to send page redirects.
- [Narrator] In this movie we're going to build…on what we just learned about modifying header information…to learn how to perform Page Redirection.…In http a webserver can tell a webrowser…that it ought to go to a new URL…by something known as a "302 redirect".…A 302 redirect has two parts to it,…both of which are items that are in the header information…that's sent back to the browser.…The first is a status code of 302 Found…and the second is a location attribute…indicating the new URL that the browser…ought to try instead.…
PHP's smart enough to know that…if we're setting the location…then we also want to set the status code…to 302 at the same time.…We don't have to manually set it.…Just by saying "header", and then telling it…the new location, it knows this must be a redirect…because that's the only thing…the location attribute is used for.…A 302 status code in the header indicates to the browser…that it should immediately make a new request…to this new location.…It ignores any page data that might follow,…in fact it expects that there won't be any.…
- Organizing project files
- Including and requiring files
- Working with URL parameters
- Encoding dynamic content
- Modifying headers and page redirection
- Creating forms and processing form data
- MySQL basics
- Using PHP to access database tables
- Creating, reading, updating, and deleting database records with PHP
- Validating data
- Preventing SQL injection
Skill Level Beginner
1. Start a Database-Driven Project
2. Build Web Pages with PHP
3. Headers and Redirects
4. Build Forms with PHP
5. MySQL Basics
6. Use PHP to Access MySQL
7. CRUD with PHP
8. Validate Data with PHP
9. Prevent SQL Injection
Next steps1m 8s
- 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.