PHP Programming Part 11: Redirecting Web Pages With Header Function In PHP
Description
Info
Level: Intermediate
Presenter: Eli the Computer Guy
Date Created: Jan 11, 2013
Length of Class: 11:08
Tracks
PHP Programming
Prerequisites
Familiarity with PHP Programming
Purpose of Class
This class teaches students how to use the Header() function in PHP to redirect web site visitors to a specific web page.
Class Notes
You cannot output any data to the screen before you call the Header() function.
The Syntax of the function is:
header("location: ./thank_you.php");
Replace ./thank_you.php with the page you want to redirect the user to.
Resources
http://php.net/manual/en/function.header.php
http://www.w3schools.com/php/func_http_header.asp
Post your comment
Comments
Be the first to comment