Featured Posts

  • Relation Between Games and Studies
  • Best Screen Protector for Nintendo Switch Available So Far
  • Gamer Problems: Then vs. Now [Comic]
  • Facebook Messenger May Soon Get Reactions, Dislike Button
  • What Happens When You Stop Smoking?

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


Copyright © New Techie