Re: [PHP] associative arrays in html forms and javascript

2001-08-08 Thread Colin Viebrock
> > > > > > > > > and like that the text field won't focus and the parser tells me that > arraystuff has no properties and that inputfield is undefined. ... should work. - Colin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

Re: [PHP] associative arrays in html forms and javascript

2001-08-08 Thread Tim McGuire
Yes, I find I have to do this a lot if I have multiple rows in a form and I want to do anything with javascript. I use commands like this: document.formname["the_checkbox[9]"].checked = true and if you needed to stick a variable in the index: theform["the_checkbox["+the_index+"]"].checked = tru

RE: [PHP] associative arrays in html forms and javascript

2001-08-08 Thread Taylor, Stewart
This is because you currently only have one field on your form named arraystuff. The browser only creates an array of elements if there is more than one of them. arraystuff.focus(), would work at present. -Stewart -Original Message- From: Daniel James [mailto:[EMAIL PROTECTED]] Sent: 0