I have a very simple HTML form with a single password field and submit button. The action calls checkPassword.php which is comprised of the following code:
<?php
if ($_POST[login] == "password"){
header("Location: [url]http://www.mysite.com/protectedPage.htm[/url]");
exit;
} else { header("Location: [url]http://www.mysite.com[/url]");
exit;
}
?>
When I submit the form using "password," I'm getting redirected back to www.mysite.com, instead of going to the (marginally) protected page.
How can I fix this? Any help is greatly appreciated.