[thelist] Strange checkbox issue (PHP / Forms)

Lee Kowalkowski lee.kowalkowski at googlemail.com
Wed Mar 4 06:49:23 CST 2009


2009/3/4 Jack Timmons <jorachim at gmail.com>:
> Lee:
>
> Using the brackets makes PHP store those fields in an array.

Yuck, OK.  The only other thing I can see is:

> To process these the following bit of code is used:
>
> ***********
> if(isset($_POST['subsection'])) {
>   $subsection = implode("|",$_POST['subsection']);
> }
> ***********
> I get the message "Invalid arguments". This appears to be due to
> $subSection being empty (but PHP still thinking it is an array!).

I just assumed it was a typo when composing your email, but
$subSection would be empty if you're assigning to $subsection, as
they're two different variables, no?

-- 
Lee



More information about the thelist mailing list