Tech Support Guy banner

Solved: I'm ganna break my keyboard...

1150 Views 3 Replies 2 Participants Last post by  brendandonhu
What the hell is wrong with this code? it won't work! it keeps saying "nope!" this is the same code I used here, that works, but this doesn't! i'm going insane!

PHP:
<?php
if ($_POST['Submit'] AND $_POST['pass'] == "ilovelambs")
{
echo "welcome to the password protected page";
}
else
{
echo "nope!";
}
?>
html code:
HTML:
password:
WHY IS IT NOT WORKING! THERE IS NOTHING WRONG!
Status
Not open for further replies.
1 - 2 of 4 Posts
$_POST['pass'] isn't set because your form field is named textfield.
[tsg=yourewelcome]yourewelcome[/tsg]
1 - 2 of 4 Posts
Status
Not open for further replies.
Top