Reply to Re: Multi Checkbox

Your name:

Reply:


Posted by Brian on 01/10/07 14:07

"J.O. Aho" <user@example.net> wrote in message
news:50k970F1fsiqtU1@mid.individual.net...
> Brian wrote:
>> Hi
>>
>> I'm sure I have done this before but I can't find the code.
>> I have form with 10 checkboxes on it, the name of
>> the checkboxes are the same but the values are
>> different.
>>
>> Im sure these would be submitted as an array, but
>> how do I get the value out of each one?
>> I think its something like
>>
>> foreach($checkbox) {
>> $output .= $checkbox
>> }
>>
>> But it's not working, what am I missing here?
>
> Did you remember to do
>
> $checkbox=$_REQUEST['checkbox'];
>

I hadn't, but have now tried this and still get an error,
I know it's something really simple I'm missing here

$information = $_REQUEST['information'];
foreach($information){
$output .= "$information<br>";
}

Brian



--------------------------------------------------------------------------------
I am using the free version of SPAMfighter for private users.
It has removed 1146 spam emails to date.
Paying users do not have this message in their emails.
Try SPAMfighter for free now!

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация