Forum Moderators: coopster
Find this line in your php.ini file:
error_reporting = E_ALL
Set that line to look like this:
error_reporting = E_ALL & ~E_NOTICE
That removes notices like the Unidentified one.
You could also try doing:
<?php
$passvar = $_POST['password'];if($passvar!= "") {
if($passvar == 'MYPASSWORD') {
?>
Put your page's contents here.
<?php
} else {
?>
Incorrect password - please try again.
<?php
}
} else {
?>
<form method="post" action="login.php">
<p>
<input type="text" name="password" size=25 maxlength=25>
Password</p>
<p>
<input type="submit" name="submit" value="Search">
<input type="reset" name="clear" value="Clear">
</p>
</form>
<?php
}
?>