使用header函数跳转的时候可以找到指定的url 也能找到页面,但是页面就是不跳转,url不变,这是怎么回事
request url:http://localhost/login
request method:post
status code:302
request headersview source
accept:*/*
accept-encoding:gzip,deflate,sdch
accept-language:zh-cn,zh;q=0.8
connection:keep-alive
content-length:67
content-type:application/x-www-form-urlencoded
cookie:phpsessid=2k3ap23pdn68ecls5a1kgb8431
host:localhost
origin:http://localhost
referer:http://localhost/
user-agent:mozilla/5.0 (windows nt 6.1) applewebkit/537.36 (khtml, like gecko) chrome/29.0.1547.66 safari/537.36
x-requested-with:xmlhttprequest
form dataview sourceview url encoded
username:123
password:e10adc3949ba59abbe56e057f20f883e
role:student
这个是开始的原页面
Request URL:http://localhost/student/index
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:zh-CN,zh;q=0.8
Connection:keep-alive
Cookie:PHPSESSID=2k3ap23pdn68ecls5a1kgb8431
Host:localhost
Referer:http://localhost/
User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36
X-Requested-With:XMLHttpRequest
Response Headersview source
Connection:Keep-Alive
Content-Length:856
Content-Type:text/html
Date:Mon, 18 Nov 2013 14:22:30 GMT
Keep-Alive:timeout=5, max=99
Server:Apache/2.4.4 (Win32) PHP/5.4.16
X-Powered-By:PHP/5.4.16
这个是要跳转到的页面
更多php ci框架中header()页面跳转问题相关文章请关注PHP中文网!
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号