1
传递给一个网址,我有一些像这样的事情在我的HTML多选框如何数组值从PHP
<label for="Status"><h2>Status:</h2></label>
<input type="checkbox" name="status[]" value="new">New<br>
<input type="checkbox" name="status[]" value="assigned">Assigned<br>
<input type="checkbox" name="status[]" value="resolved">Resolved<br>
<input type="checkbox" name="status[]" value="verified">Verified<br>
<input type="checkbox" name="status[]" value="closed">Closed<br>
myphp
$status = $_POST["status"];
$url = "http://some-example.com/project="abc" and state in [".$status."]/";
header("Location:$url");
我想要的网址如:
$url = "http://some-example.com/project="abc" and state in ["new","assigned","resolved","verified","closed"]/
是有可能做到这一点?如果是这样,请帮助。
的可能的复制(https://stackoverflow.com/questions/6243051/如何对传递一个阵列中之查询字符串) – Zico