Redirection in PHP without using header

You can redirect page without using Header. See below code,


if ($success)
{
 echo '<META HTTP-EQUIV="Refresh" Content="0; URL=success.php">';
 exit;
}
else
{
 echo '<META HTTP-EQUIV="Refresh" Content="0; URL=retry.php">';
 exit;
}

Tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *