NYCPHP Meetup

NYPHP.org

[nycphp-talk] Javascript and PHP arrays (Massive Redux)

Chris Bielanski Cbielanski at inta.org
Thu Jul 29 12:00:04 EDT 2004


Phil Powell wrote:
> in Javascript you would write the form element like this:
> 
> document.myForm.elements['array[]'].  I've found online resources on 
> www.phpbuilder.com that verified this for me.
> 
> Phil
> 
> -- 
> --------------------------------------------------------------
> -------------------
> Phil Powell
> Multimedia Programmer
> BPX Technologies, Inc.
> #: (703) 709-7218 x107 
> Fax: (703) 709-7219

Unfortunately when I try to

alert(document.myForm.elements['array[]'].value);

I get 'undefined' (yes I put text in the input control). I shall keep a
vigilant watch :)

Thanks,
Chris Bielanski
Web Programmer, 
International Trademark Association,
1133 Avenue of the Americas, 33rd Floor
New York, NY 10036
+1 (212) 642-1745, f: +1 (212) 768-7796
mailto:cbielanski at inta.org, www.inta.org  
INTA -- 125 Years of Excellence





More information about the talk mailing list