[PHP] Can i get all content for list box in $_POST

2004-03-23 Thread Sheeraz fazal
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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Can i get all content for list box in $_POST

2004-03-23 Thread Pablo Gosse
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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

2004-03-23 Thread Sheeraz fazal
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 [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

2004-03-23 Thread Sheeraz fazal
My Mistake. I over looked :(

Pablo Gosse [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php