I need help understand the following pieces of code im still new to php so my knowlage is limited.
piece 1
header ("Refresh: 5; URL=" . $_POST['redirect'] . "");
echo "You are being redirected to your login area!</br>";
echo "(If your browser doesn't support this, <a href=\"" .
$_POST['redirect']. "\">click here</a>)";
piece 2
else
{
if($_SERVER['HTTP_REFERRER'] =="" || $_SERVER['HTTP_REFERRER'] =="http:/localhost/index.php")
{
$redirect ="index.php";
}
else
{
$redirect =$_GET['redirect'];
}
?>