关于以个跳转的小问题,想跟大家取取经

WBOY
Release: 2016-06-23 13:50:31
Original
846 people have browsed it

如下图,这是一个登陆的代码,重点在有注释的那里,不知道用header("location:main.php");直接跳转到主页面好,还是用Get_admin_msg('main.php','登陆成功!');这个函数来做一个过渡,在点击一次才跳转到主页面好??Get_admin_msg这个函数里没什么,就是一个登陆成功请点击!


回复讨论(解决方案)

这个有什么纠结的,想直接跳转就用header,如果想来点提示,体验好点就用第二个。

这个看个人意图,如果有提醒给个提醒,没提醒直接跳转目标页。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template