Home >Backend Development >PHP Tutorial >Passing a path as a parameter will result in incomplete parsing.
Passing a path as a parameter will result in incomplete parsing
<code>$url="确定,".C("WEBURL").__ROOT__.U('App/Member/newsale'); $this->redirect ("App/Services/index",array('statue'=>'ok',"msg"=>urlencode('卡券使用成功!'),"url"=>urlencode($url))); </code>
Receive 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>
Then print $arr
Passing a path as a parameter will result in incomplete parsing
<code>$url="确定,".C("WEBURL").__ROOT__.U('App/Member/newsale'); $this->redirect ("App/Services/index",array('statue'=>'ok',"msg"=>urlencode('卡券使用成功!'),"url"=>urlencode($url))); </code>
Receive 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>
Then print $arr
Report to the poster that everything is normal when I return it. There is no situation like the poster.
ps: Is it really good to submit Chinese using get method? ? ?