Bad cookie. Clear please clear them out and try to login again.

"; exit; } } if (isset($_GET['p']) && $_GET['p'] == "login") { if ($_POST['name'] != $username) { echo "

Sorry, that username does not match. Try again.

"; exit; } else if ($_POST['pass'] != $password) { echo "

Sorry, that password does not match. Try again.

"; exit; } else if ($_POST['name'] == $username && $_POST['pass'] == $password) { setcookie('MyLoginPage', md5($_POST['pass'].$randomword)); header("Location: $_SERVER[PHP_SELF]"); } else { echo "

Sorry, you could not be logged in at this time. Try again later.

"; } } ?>