我创建了一个登录表单,它正在重定向到 validatelogin.php 并进行了验证。
<tr>
<td>Username / Email</td>
<td><input name="usr_email" type="text" class="required" id="txtbox" size="25"></td>
</tr>
<tr>
<td>Password</td>
<td><input name="pwd" type="password" class="required password" id="txtbox" size="25"></td>
</tr>
<tr>
<td colspan="2"> <div align="center">
<input name="doLogin" type="submit" id="doLogin3" class="styled-button-1" value="Login" />
myvalidate.php 是:
if(empty($err)){
header("Location: index.php?Page=defaultblog");
}
else
{
$err[] = "Invalid Login. Please try again with correct user email and password.";
}
} else {
$err[] = "Error - Invalid login. No such user exists";
}
}
在本地机器中,如果没有错误,它会重定向到,header("Location: index.php?Page=defaultblog");
但是当我将它上传到 inot 服务器时,它只会重定向到validate.php
请告诉我?