Does it count as "header output" if I've logged in from another html page then sent user to a different page where the php tried to register them?
The login page:
<!--display the login in form!-->
<form method=post action="../login/member.php">
<table bgcolor=#000000>
<tr>
<td colspan=2>Log in:</td>
<tr>
<td>Username:</td>
<td><input type=text name=username></td></tr>
<tr>
<td>Password:</td>
<td><input type=password name=passwd></td></tr>
<tr>
<td>Remember Me:</td>
<td><INPUT TYPE="CHECKBOX" name="remember" disabled;></td></tr>
<tr>
<td colspan=2 align=center>
<input type=submit value="Log in"></td></tr>
</table></form>
The member.php page
if ($username && $passwd)
// they have just tried logging in
{
if (login($username, $passwd))//FUNCTION CALL TO CHECK DB
{
// if they are in the database register the user id
$valid_user = $username;
session_register("valid_user");
//JUST ABOVE HERE IS WHERE ERROR IS OCCURRING.
echo "<a class=dark href=/content/rlogs/index.php?pagename=logs&subMenu=logs>Training Logs</a>";
}
else
{
// unsuccessful login
echo "<p>You could not be logged in.
You must be logged in to view this page.</p>";
exit;
}
}
Is this correct?
What am I missing (or in need or learning!)
Thanks much!