Greta, this is a simple way to do the identification without pulling all your hair out:
As Jamie said, you need a form:
HTML Code:
<form name="frmPwd" action="login.php" method="post">
<input type="password" name="inpPwdPass"/>
<br/>
<input type="submit" value="Login"/>
</form>
Then, the login.php should be:
PHP Code:
<?php //First, define the valid password $validPwd="ThereIsNoPass";
//Get the form passed password $userPwd=trim($_POST['inpPwdPass']);
//Check them both, and redirect accordingly if( $userPwd == $validPwd ){ header('location:/protected/index.html'); exit(); } else{ header('location:/someErrorPage.html'); exit(); } ?>
Obviously, you need to change the error or success landing pages, but this is all you'll need.
__________________
Listen to the ducky: "This is awesome!!!"
|