Passing a path as a parameter will result in incomplete parsing.

WBOY
Release: 2016-10-17 09:30:24
Original
1480 people have browsed it

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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

Then print $arr

Passing a path as a parameter will result in incomplete parsing.

Reply content:

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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

Then print $arr

Passing a path as a parameter will result in incomplete parsing.

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? ? ?

Related labels:
php
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