[thelist] Strange checkbox issue (PHP / Forms)

Hugh Miller hmiller at cfpress.co.uk
Wed Mar 4 07:27:43 CST 2009


That one is a typo, apologies!

Lee Kowalkowski wrote:
> 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?
>
>   

-- 
Hugh Miller
Web Developer
Clyde & Forth Press Ltd

Tel:   +44-01475-726511
Fax:   +44-01475-783734
Email: hmiller at cfpress.co.uk


This e-mail and any attachments are confidential and intended solely for the addressee. If you have received it in error, please inform the sender and delete it immediately. The views or opinions contained within this email may not be those of Clyde & Forth Press Ltd, which accepts no liability for any damage caused by the transmission of any viruses. E-mail traffic is monitored within Clyde & Forth Press Ltd and messages may be viewed.

Clyde & Forth Press Ltd is a company registered in Scotland (SC132609) with its registered office at Pitreavie Business Park, Dunfermline, Fife, KY11 8QS.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the thelist mailing list