php在网页登陆成功后怎么实现网页跳转,由login跳转到index?

网页设计

作者:饶雅琴 发布:2023-05-06 09:16 384浏览

回答 共1个

1、首先,打开php编辑器,新建php文件,例如:index.php;

2、在index.php中,输入代码:header('Location: index.php');

3、浏览器运行login.php页面,此时会跳转到index.php页面;

15赞同

2023-05-06 09:36:28

推荐阅读 RECOMMENDED READING