Implode error for PHP
Posted
by Pete Herbert Penito
on Stack Overflow
See other posts from Stack Overflow
or by Pete Herbert Penito
Published on 2010-05-06T21:21:36Z
Indexed on
2010/05/06
21:28 UTC
Read the original article
Hit count: 245
Hi Everyone! I have a form where I've got three checkboxes like this:
<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 extract($_POST), and have this code
$comServices = implode(",", $services);
but I get an error:
Warning: implode() [function.implode]: Invalid arguments passed in ..
does anyone know why Im getting this error?
© Stack Overflow or respective owner