Home >Backend Development >PHP Tutorial > header()看似没有跳转 求帮助

header()看似没有跳转 求帮助

WBOY
WBOYOriginal
2016-06-13 12:43:10948browse

header()貌似没有跳转 求帮助
只是接收数据对比,然后分别指向2个php页面,php页面都在一个路径下。form表单提交后没有反应怎么回事。。。
$username = $_POST['username'];
$password = $_POST['passwd'];
if($password == "123"){
header("Location:friendlist.php");
}else{
header("Location:login.php");
}
?>


UserName:


PassWord:


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn