如何使用URL参数创建此字符串?我想要的是:
print '<meta http-equiv="refresh" content="0;url=http://domain.com?a=1&b=2">';
Run Code Online (Sandbox Code Playgroud)
但这并没有正确传递我的第二个参数.我得到一个")"而不是b.我究竟做错了什么?
我试过&而不是&符号,但这也不起作用,
小智 7
echo "<meta http-equiv='refresh' content='0;url=http://domain.com?a=1&b=2'>";
Run Code Online (Sandbox Code Playgroud)
甚至
header ("Location: url=http://domain.com?a=1&b=2");
Run Code Online (Sandbox Code Playgroud)
因为你使用0作为延迟
| 归档时间: |
|
| 查看次数: |
63417 次 |
| 最近记录: |