时间:2021-07-01 10:21:17 帮助过:33人阅读
php在网页登录成功后实现网页跳转的方法:首先打开编辑器,新建php文件;然后在php文件中输入代码“header('Location: index.php');”;最后在浏览器运行,此时会跳转到index.php页面。
1、首先,打开编辑器,新建php文件,例如:index.php。
2、在index.php中,输入代码:header('Location: index.php');。
3、浏览器运行login.php页面,此时会跳转到index.php页面。
以上就是php在网页登录成功后怎么实现网页跳转的详细内容,更多请关注gxlcms其它相关文章!