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

用户投稿 228 0

关于“php简网页访问代码”的问题,小编就整理了【2】个相关介绍“php简网页访问代码”的解答:

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

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

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

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

如何在php网页代码中实现点击链接让网页从新窗口打开?

a标签加上 target="_blank"就会在新窗口打开<li id=\"current\"><a href=\"index.php\" target=\"_blank\" title=\"Index\">首页</a></li>

到此,以上就是小编对于“php简网页访问代码”的问题就介绍到这了,希望介绍关于“php简网页访问代码”的【2】点解答对大家有用。

抱歉,评论功能暂时关闭!