Re: Re: Variable name as a string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You cannot have anything in the brackets for the name in a checkbox
group.  The brackets specify that it is an array.  The name of the array
is the key in $_POST that contains the values of the checkbox group that
were checked.  You can have as many groups as you like.

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



Shawn McKenzie wrote:
> I guess you missed my last post, it was maybe the first or second
> reply to this thread:
>
> <input type="checkbox" name="data[field_name]" id="my_checkbox_1"
> value="1" >
>
> Then on post you have a $_POST['data'] array that contains the
> field_names as keys and the checkbox values as values.
>
> That's why I was wondering if I was missing something.
>
> -Shawn
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux