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.

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-10-17 09:30:24
Original
1707 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
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template