form vbls in arrays

G

Greg Bryant

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
 
M

Martin Honnen

Greg said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top