我有一个表格,其中有三个这样的复选框:
<td>Wireless <input type="checkbox" name="services[]" value="wireless" /></td>
</tr>
<tr>
<td>Cellular <input type="checkbox" name="services[]" value="cellular" /></td>
</tr>
<tr>
<td>Security <input type="checkbox" name="services[]" value="Security" /></td>
<input type="submit" name="submit">
然后我提取($_POST),并有这个代码
$comServices = implode(",", $services);
但我收到一个错误:
警告:implode() [function.implode]:传入的参数无效..
有谁知道我为什么会收到这个错误?