Saturday, August 11, 2012

How to Redirect any page with php

<?php

//how  to Redirect any page with php




function  reDirect2Url($pageUrl) //  Write the function code Here
{
    if ($pageUrl!="")
    {
        header("location: $pageUrl");
    }
}



reDirect2Url("yourpageurlhere");   // called the function

?>

No comments:

Post a Comment