Implode error for PHP
I have a form in which I have three checkboxes:
<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">
and then i fetch ($ _ POST) and have this code
$comServices = implode(",", $services);
but I am getting the error:
Warning: implode () [function.implode]: Invalid arguments passed ..
Does anyone know why I am getting this error?
+2
a source to share
3 answers