登錄後我有至極流行鮑勃搜索頁面打開,並彈出登錄後,我想重定向相同的URL網址手段沒有改變。所以我怎麼能redairect .. ..如何去同一個頁面中的PHP頁面
這是搜索頁面彈出的代碼。
<div id="light">
<form action="tutors_login1.php" method="post" name="form">
<center>
<table>
<tr><td>
PLEASE LOGIN
</td></tr>
<tr><td>
User Email <input type="text" name="email" />
</td></tr>
</tr><td>
Password <input type="password" name="password" />
</td></tr>
<tr><td>
<input type="submit" name="submitbut" value="Login" />
</td></tr>
</table>
</center>
</form>
</div>
<div id="fade" onClick="lightbox_close();"></div>
這是我redairect頁面
if($flagl=='lgin'){
header('Location: my_account.php');
}
$tabl = 'tutor';
if($_POST['submitbut'] == 'Login') {
$stateid=$_REQUEST['country'];
$cityid=$_REQUEST['state'];
$areaid=$_REQUEST['city'];
$email = mysql_real_escape_string($_POST['email']);
$password = mysql_real_escape_string($_POST['password']);
$sql = "SELECT * from $tabl where email='$email' AND password='$password' AND app='1'";
$exec = mysql_query($sql);
$num = mysql_num_rows($exec);
if($num == 1) {
$fetch = mysql_fetch_assoc($exec);
$_SESSION['login'] = $fetch['uniq'];
$_SESSION['email'] = $fetch['email'];
$email = $_SESSION['email'];
$_SESSION['type'] = 'tutor';
header("Location: latest_tuition_jobs.php");
}
if($sql1 = "SELECT * from $tabl where email='$email' AND password='$password' AND app='0'")
{
$exec1 = mysql_query($sql1);
$flag_r1 = 'r';
} else {
$flag_r = 'r';
}
}
我正在本地主機上的工作不就行 –
這個shouldn't事情, 只是檢查出什麼是寫在REQUEST_URI 應被某事像的index.php 和UR當前頁面可以login.php中 ,這樣你們就從指數UR登錄頁面 – ReloxX