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

如题所述

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

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

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

温馨提示:答案为网友推荐,仅供参考