Re: Why is PHP unable to access my select list values?
| From: | Richard Lynch | Date: | Wed, 03 Jul 2002 01:35:46 +0000 |
| Subject: | Re: Why is PHP unable to access my select list values? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-105099@lists.php.net to get a copy of this message | ||
>I've created the following file (see HTML/JavaScript code below) which
>allows end-users to dynamically (on the client-side) move items from one
>form select list (called "list_managers" to another (called simply
>"managers[]"). When, however, I attempt to access the end-user created
>"managers[]" form select list with PHP, I'm unable to do so! My testing
>(using the empty and isset functions) revealed that the "managers[]" array
>shows up as being empty, even though items were added to it from the
>"list_managers" select list prior to the form's submission. Has anyone
>encountered this problem before? What am I doing wrong here? Are there any
>suitable workarounds?
I think you have two (2) fields named 'managers[]'
Both will be transmitted to PHP.
Only the second one is probably making it through...
Rename one of them to something else.
Disclaimer: I can't read that JavaScript well enough to figure it out...
--
Like Music? http://l-i-e.com/artists.htm