php跳转问题:用header跳转一个网址“baidu.com/m=”时,但是我想在=后再加一个$a跳转,不知道应怎样写?

如题所述

<?php
$url = "http://www.baidu.com/m=".$a;
header("location:".$url );
?>

or
<?php
$url = "http://www.baidu.com/m=".urlencode($a);
header("location:".$url );
?>
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答