Re: multiselects and arrays

From: Date: Thu, 10 May 2001 16:30:52 +0000
Subject: Re: multiselects and arrays
References: 1 2 3 4 5 6 7 8  Groups: php.dev 
Request: Send a blank email to php-dev+get-54755@lists.php.net to get a copy of this message
Well You can use something like this: variable = documents.forms[0].elements['foo[]']; "Zeev Suraski" <zeev@zend.com> wrote in message news:5.1.0.14.2.20010510192912.0332bec8@mail.zend.com... > At 19:20 10/5/2001, Andrei Zmievski wrote: > >On Thu, 10 May 2001, Zeev Suraski wrote: > > > Why does it make more sense? Is there any advantage in using this over > > > using foo[]? By changing this behavior, we're actually losing > > > functionality, not adding any. > > > >Interaction with Javascript is problematic if you use [] in the variable > >name. That's one disadvantage. > > With no easy workaround such as \[\] or something like that? > > Zeev

« previous php.dev (#54755) next »