Home > Backend Development > PHP Tutorial > PHP中通过返回值进行页面跳转的问题!

PHP中通过返回值进行页面跳转的问题!

WBOY
Release: 2016-06-23 13:38:45
Original
1277 people have browsed it

请教各位大神,我现在又个问题,比如一个登入注册模块,我有一个PHP文件是用来处理登入注册的逻辑判断,然后return一个值,比如成功就是true,失败就是false,那么问题来了,我想通过一个中转的页面,用JS或者再创建一个PHP页面,那怎么获得这个return的值来实现页面跳转。


回复讨论(解决方案)

跳转到中转页面的时候把reutrn的值放在url里面传过去

跳转到中转页面的时候把reutrn的值放在url里面传过去


问题是我PHP中的是函数,而且返回的是true false,这怎么调啊
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