首先要判断是否用户名密码正确 if(...){ header("location:URL");URL是要跳转的网址! } 转载于:https://www.cnblogs.com/lzh900926/p/5579491.html