这是我的代码,我正在尝试将标题重定向到由变量“$ direct”定义的页面,但每当我运行脚本时它都显示错误并说
“找不到”
在此服务器上找不到请求的URL /资源ID。
此外,尝试使用ErrorDocument处理请求时遇到404 Not Found错误。“
请帮助!!
$sql1="SELECT direct FROM $tbl_name WHERE username='$myusername' and password='$mypassword'";
$result=mysql_query($sql1);
Mysql_num_row is counting table row
$count=mysql_num_rows($result);
If result matched $myusername and $mypassword, table row must be 1 row
if($count==1){
Register $myusername, $mypassword and redirect to file "login_success.php"
header('location: '.$direct);
}
else {
echo "Wrong Username or Password";
}
ob_end_flush();
?>