使用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:keepa 67
Content-Type:application/x-www-form-urlencoded
Cookie:PHPSESSID=2k3ap23pdn68ecls5a1kgb8431
Host:localhost
Origin:http://localhost
er:51/5038m/cLillar. (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36
X-Requested-With:XMLHttpRequest
FormAsourceview sourceviewX-Requested-With:XMLHttpRequest
URL sourceviewviewview 57f20f883e
role:student
這個是開始的原始頁面
Request URL:http://localhost/student/index
Request Method:GET
Request Headersview source
Accept:*/*
Accept-EncodingRequest Headersview source
Accept:*/*
Accept-EncodingRequest Headersview,defcoding,
Accept-Language:zh-CN,zh;q=0.8
Connection:keep-alive
Cookie:PHPSESSID=2k3ap23pdn68ecls5a1kgb8431
Host:localhost 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36
X-Requested-With:XMLHttpRequest
Response Headme source
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中文網!