Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at members.php line 1
Code: Select all
[b][u]LINE 1 of members.php:[/u][/b]
<?php session_start();?>Code: Select all
[b][u]login.php[/u][/b]
<?php
if (isset($_SESSION['login_auth'])) {
header('Location: members.php');
}
if (isset($_POST) && count($_POST > 0) {
$password = "password_here";
if ($_POST[txtPass'] == $password) {
$_SESSION['login_auth'] = "1";
header('Location: members.php');
} else {
print "Incorrect password specified.";
}
} else {
print "Error! No post vars found, please check <form> tags!";
}
?>Code: Select all
[b][u]Login form (index.html)[/u][/b]
<form id="frmLogin" action="login.php" method="post">
<b>Password:</b> <input type="password" id="txtPass" name="txtPass" /><br /><br />
<input id="btnLogin" type="submit" value="Log In" />
</form>Also, it may not be a php issue, but when loaded from the internet server, the entire website is wrong, below is a url to a page that doesn't display properly, and a url to one that does. The only difference between these two pages is that the first one uses navigation scripts that aren't discussed here, while the second doesn't.
http://haven.astralwd.co.za - Bad
http://haven.astralwd.co.za/Access/oice%20Guide.html - Good
I've been sitting at a loss with these problems for nearly two months, so any suggestions will be greatly appreciated.[/color]