470,643 Members | 1,585 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,643 developers. It's quick & easy.

form vbls in arrays

I'm working on a page generated by PHP, and all the form fields are named
as b[fieldname]. (e.g. <input type=text name='b[name]' value='Adam'>).
Javascript seems to barf on this (document.formname.b[name].length is
undefined ). Is there any way to get this to work with arrays, or do I
just need to use those fields referenced in the js as non-arrays?

Thanks,
Greg
Jul 23 '05 #1
2 1015


Greg Bryant wrote:
I'm working on a page generated by PHP, and all the form fields are named
as b[fieldname]. (e.g. <input type=text name='b[name]' value='Adam'>).
Javascript seems to barf on this (document.formname.b[name].length is
undefined ). Is there any way to get this to work with arrays, or do I
just need to use those fields referenced in the js as non-arrays?


See the faq
http://www.jibbering.com/faq/#FAQ4_25

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 23 '05 #2
Martin Honnen <ma*******@yahoo.de> wrote in news:408a5af3$1
@olaf.komtel.net:
http://www.jibbering.com/faq/#FAQ4_25


Thanks for both - response and pointer to the FAQ.

Greg
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

17 posts views Thread by Phil Powell | last post: by
6 posts views Thread by Joe Blow | last post: by
2 posts views Thread by Mark Hannon | last post: by
2 posts views Thread by RBohannon | last post: by
11 posts views Thread by oliver.saunders | last post: by
15 posts views Thread by Kevin Davis | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.