如题所述
1、首先,打开php编辑器,新建php文件,例如:index.php;
2、在index.php中,输入代码:header('Location:index.php');
3、浏览器运行login.php页面,此时会跳转到index.php页面;