把一个路径当参数传递,解析的时候解析不完整
<code>$url="确定,".C("WEBURL").__ROOT__.U('App/Member/newsale'); $this->redirect ("App/Services/index",array('statue'=>'ok',"msg"=>urlencode('卡券使用成功!'),"url"=>urlencode($url))); </code>
接收代码:
<code>$msg=urldecode($_GET['msg']); $msg=empty($msg)?"参数错误":$msg; $statue=empty($_GET['statue'])?'ok':$_GET['statue']; if($_GET['url']){ $url=urldecode($_GET['url']); $arr=explode(',', $url); } </code>
然后打印$arr
把一个路径当参数传递,解析的时候解析不完整
<code>$url="确定,".C("WEBURL").__ROOT__.U('App/Member/newsale'); $this->redirect ("App/Services/index",array('statue'=>'ok',"msg"=>urlencode('卡券使用成功!'),"url"=>urlencode($url))); </code>
接收代码:
<code>$msg=urldecode($_GET['msg']); $msg=empty($msg)?"参数错误":$msg; $statue=empty($_GET['statue'])?'ok':$_GET['statue']; if($_GET['url']){ $url=urldecode($_GET['url']); $arr=explode(',', $url); } </code>
然后打印$arr
报告楼主 我返回一切正常 没有出现楼主这样的情况
ps:用get方式提交中文真的好么???