On Aug 24, 1:15 pm, Richard Quadling <rquadl...@googlemail.com> wrote:

> Extending upon what ColinFine said about the use of [], this can be
> useful when using checkboxes when the [] contains, say, an id or when
> the input tag's value is set.
>
> e.g.
>
> <input type="checkbox" name="involved[Monday]" />
>
> or
>
> <input type="checkbox" name="involved[]" value="Monday" />
>
> The first would produce and array ...
>
> Array
> (
>     [Monday] => 1
> )
>
> The second would produce an array ...
>
> Array
> (
>     [0] => Monday
> )
>
Thanks, Richard, I hadn't thought of those approaches.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to