,当我登录...我想它来寻找我的新$ _SESSION变量,然后重新装入该页面与所有选定的数据。但不是http://www.theqlick.com/findFriends/lesson.php?username=noahtheteacher重定向到
我得到这个代替:http://theqlick.com/findFriends/lesson.php?username=%3C?%20echo%20noahtheteacher;%20?%3E
这是为什么?它没有加载正确的页面要么...我的代码如下
页面的顶部:
$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; ?>\">";
}
登录实际的html代码:
<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>
回声 “”; –