redirect ("App/Services">
时间:2021-07-01 10:21:17 帮助过:20人阅读
把一个路径当参数传递,解析的时候解析不完整
$url="确定,".C("WEBURL").__ROOT__.U('App/Member/newsale');
$this->redirect ("App/Services/index",array('statue'=>'ok',"msg"=>urlencode('卡券使用成功!'),"url"=>urlencode($url)));
接收代码:
$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);
}
然后打印$arr
把一个路径当参数传递,解析的时候解析不完整
$url="确定,".C("WEBURL").__ROOT__.U('App/Member/newsale');
$this->redirect ("App/Services/index",array('statue'=>'ok',"msg"=>urlencode('卡券使用成功!'),"url"=>urlencode($url)));
接收代码:
$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);
}
然后打印$arr
报告楼主 我返回一切正常 没有出现楼主这样的情况
ps:用get方式提交中文真的好么???