That's not the problem. The problem is referring to the listbox via
javascript. It doesn't like the format: formName.listBoxName[].value it
has no problem with formName.listBoxName.value but then PHP doesn't seem
to handle it correctly.
<>< Ryan


From: Dimiter Ivanoff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 18, 2005 12:25 PM
To: Ryan Jameson (USA)
Subject: Re: [PHP-DB] Multiselect List

Place the countries in array.
Name the select with your array name.
<select name="<?=$yourarrayname?>" >
and for the <option> use as value the keys from the array.Where your
keys may be the IDs of the countires from the db.

"Ryan Jameson (USA)" <[EMAIL PROTECTED]> wrote:

        Hey Guys,
        I'm populating a multiselect list with countries from my
database. PHP
        seems to require the name contain array brackets, ie. myName[].
        problem I'm having is referring to the select list via
javascript when
        the name contains the brackets. Anyone know how?
        <>< Ryan
        PHP Database Mailing List (
        To unsubscribe, visit:


How much free photo storage do you get? Store your holiday snaps for
FREE with Yahoo! Photos. Get Yahoo! Photos

Reply via email to