Re: Can i get all content for list box in $_POST

From: Date: Tue, 23 Mar 2004 22:39:31 +0000
Subject: Re: Can i get all content for list box in $_POST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181322@lists.php.net to get a copy of this message
Thanks. As same <select> element is used in PHP and JavaScript. Naming a tag ending in sqare brackets [] is JavaScript error. Till now either PHP will not produce desired results or JavaScript will give me error :( "Pablo Gosse" <gossep@unbc.ca> wrote in message news:68B99CBE9259DC4E8A788367AFD4D4D50305874F@pg-adr-exch-01.adr.unbc.ca... Sheeraz fazal wrote: > Hi All, > > I have a list box in a page (html <select> tag with multiple > selection option). Items are added dynamically in list box, using > javascript. Can i get all elements of listbox in my php code. > > If i do $_POST['select_tag_name']. I get a variable not an array. > Thus getting only one item. > > Comments? http://www.php.net/manual/en/faq.html.php#faq.html.select-multiple

« previous php.general (#181322) next »