diff --git a/includes/login.inc b/includes/login.inc new file mode 100644 index 0000000..5a9184e --- /dev/null +++ b/includes/login.inc @@ -0,0 +1,35 @@ +You are a valid user!
"; +# echo "Your username is $_POST[username]
"; +# echo "Your password is $_POST[password]

"; + $_COOKIE['monkey'] = '1'; + setcookie('monkey',$_COOKIE['monkey']); + session_start(); + session_register[login];$_SESSION[login] = '1'; + session_register[count];$_SESSION[count]++; + } else { + unset($_POST['do']); + echo "

You are not authorized. Please try again.

"; + include("login_form.inc"); + break; + } + +} +?>