when I log in...i want to it to find my new $_SESSION variable and then reload into that page with all the selected data. But instead of http://www.theqlick.com/findFriends/lesson.php?username=noahtheteacher
I get this instead: http://theqlick.com/findFriends/lesson.php?username=%3C?%20echo%20noahtheteacher;%20?%3E
Why is that? It isn't loading the correct page either...my code is below
The top of the page:
$new_user = $_SESSION['user_login'];
if (!isset($_SESSION["user_login"])) {
echo "";
}
else
{
echo "<meta http-equiv=\"refresh\" content=\"0; url=lesson.php?username=<? echo $new_user; ?>\">";
}
The login actual html code:
<h2>If your a teacher, login below ...</h2>
<form action="lessons_login.php" method="post" name="form1" id="form1">
<input type="text" size="40" name="user_login" id="user_login" class="auto-clear" title="Username ..." /><p />
<input type="text" size="40" name="password_login" id="password_login" value="Password ..." /><p />
<input type="submit" name="button" id="button" value="Login to your account">
</form>
</div>