So here's the setup:
I have 2 scripts, the index and authorise.php
Index:
<html>
<head> <title>Testing</title>
</head>
<body>
<form method=post action=authorise.php>
Password: <input type=text name=authpass size=20>
<input type=submit>
</form>
</body>
</html>
and Authorise:
php
$the_auth_pass = "itsybitsy";
$submitted_pass = $_POST ('authpass');
If ($the_auth_pass == $submitted_pass)
(
echo "Well Done. The password you entered is correct.";
)
else
(
echo "The password you have entered is incorrect.";
)
?>
The problem is, it's returning a blank screen. Im completely new to this, and I do tend to run before I can walk. Any help appreciated.
I know I should probably be using SQL to store passwords and things, but this is my first day of learning, I havent gotten that far yet 😉.