I'm really new to PHP, and I'm trying to set up an admin page for my friend's site. He and I are the only ones who will ever need admin access.
Is the following code secure?
if (($_POST[username])=="myusername" AND $_POST[password]=="mypassword")
echo "you made it!";
/* setcookie("admin", "true", time()+3600); */
echo "Access restricted.";