How to Redirect page in PHP [Tutorial]

Creating a Redirect Page in PHP is very Easy. In this we use header Function to redirect our page. Let See how to Use

General Syntax for Redirect using Header is:

header('Location: ');

Here Destination url can be changed to the url where you want to redirect you can also create this using variable like:

$url = 'http://newtechie.com'; 
header('Location: '.$url.''); 

$url is variable where you can change the url for destination.

This is Simple Guide how to Redirect Page in PHP

    Blogger Comment
    Facebook Comment
 
Copyright © 2013. New Techie - All Rights Reserved
Template Created by ThemeXpose