README.md

December 4, 2022 ยท View on GitHub

Redirect Function in PHP

Description

Redirect, via simple function.

More Info

just page name :)

Its just a function to redirect, to whatever page you need, just pass the parameter to the funtion.

redirect action

Submitted On
ByMourad Hamed
LevelBeginner
User Rating3.8 (15 globes from 4 users)
CompatibilityPHP 3.0, PHP 4.0
CategoryComplete Applications
WorldPHP
Archive File

Source Code

function Redirect_Function($Page)//Function to redirect the page into destination one due to its parameter
  {
   global $HTTP_SERVER_VARS;
   $Path = "http://".$HTTP_SERVER_VARS['HTTP_HOST'].dirname($HTTP_SERVER_VARS['PHP_SELF'])."/".$Page;
   echo"<script>window.location=\"$Path\"</script>";
  }