Need help - I want user to be able to just type "any" username no password to be able to enter... no worries about security!!!
any help would be appreaciated
config.php
#login information for users that can post entries as an array ("username"=>"password")
$allowed = array("admin"=>"password","guest"=>"demo");
script:
while (list ($key, $val) = each ($allowed)) {
if ($key == "$user" && $val == "$pass") {
mysql_query($sql) or die("error 324343");
}
form:
<input name="user" type="text" value="" style="width:135; height:17"> :<strong style='font-size: 10px;color:#000000;'>Username</strong>
<input name="pass" type="password" style="width:135; height:17"> :<strong style='font-size: 10px;color:#000000;'>Password</strong><br />
<textarea name="mynotes" style="width:430; height:80"></textarea><br />
<?=$posttext;?><br />