hi, i am very new to php and am trying to set up a password/login script- a very basic one, that will display a page if the pass and log are correect. here is what i have on the index.php page i have this:
<form action="/inventory.php" method="post">
login:
<input name="login" type="text" size="15">
<br>
password:
<input name="pwd" type="text" size="15">
<br>
<input name="" type="submit">
</form>
and on the inventory.php i have this:
<?php
login=$GET["login"];
pwd=$GET["pwd"];
if login=="howdy" and pwd=="mom" {
echo "hi";
echo "you are in";
}
else
echo "wrong!";
?>
im getting this error:
Parse error: parse error in /home/content/k/a/t/kathiesever/html/inventory.php on line 53
and line 53 is this line:
login=$_GET["login"];
any help would be greatly appreciated!!
thanks 🙂
-monique