i have a small 'private' place on my server where i store some things. but it cannot be accessed till u enter a password.
the password form code is:
<form name="form1" method="post" action="index1.php">
<p align="left">
<?php if ($error) echo '<p><font size="2" face="Courier New, Courier, mono"><strong>Password Incorrect</strong></font></p>'; ?>
Password:
<input name="pass" type="password" id="pass">
</p>
<p>
<input name="Enter" type="submit" id="Enter" value="Submit">
</p>
</form>
this takes u to index1.php
at the top of index1.php it has:
<?php if ($pass == "l3g3nd") { ?>
and at the bottom it has:
<?php } else header('Location: index.php?error=1'); ?>
and of course has that on every other page.
but my problem is its asking for the password to be entered on everypage. so are my only choices removing the password protection or entering the password for EVERY page i want to access? or is there a way it can store the session so it only asks once maybe? i dont know😕 i'm a bit of a noob any help appreciated