NYCPHP Meetup

NYPHP.org

[nycphp-talk] form element arrays

Tim Gales tgales at tgaconnect.com
Mon Oct 31 17:22:59 EST 2005


Marc Antony Vose wrote:

>I have a select element for which I need to return multiply selected 
>items to PHP.  In other words, I guess it has to have the name 
>'something[]', with brackets.
>
>However, I also need to add options to the select list via 
>javascript, but it seems like the addition of the brackets makes the 
>form element name invalid, by javascript's standards, since you 
>access attributes of objects with brackets (i.e., JavaScript can't 
>see an element named 'something[]').

Maybe getElementById() can help.

see:
http://lists.nyphp.org/pipermail/talk/2004-July/011083.html
and
http://lists.nyphp.org/pipermail/talk/2004-July/011100.html


-- 
T. Gales & Associates
'Helping People Connect with Technology'

http://www.tgaconnect.com



More information about the talk mailing list