11智能在线
新记
php跳转问题:用header跳转一个网址“baidu.com/m=”时,但是我想在=后再加一个$a跳转,不知道应怎样写?
如题所述
举报该文章
相关建议 2011-12-06
<?php
$url = "
http://www.baidu.com/m=
".$a;
header("location:".$url );
?>
or
<?php
$url = "
http://www.baidu.com/m=
".urlencode($a);
header("location:".$url );
?>
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/82f247fvf.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
<?php header("Location:http://...
PHP中我用header跳转到另一个php时,我需要带一个值...
PHP使用header跳转时如何用get方法传过去一个变量。
php 用header("Location:")如何跳转到前...
PHP如何跳转页面并带参数
thinkphp中怎么实现跳转到其他网站
php根据参数跳转到指定网址 要怎么写