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

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

WBOY
Release: 2016-06-13 12:43:10
Original
947 people have browsed it

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:


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template