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
Ryan,
you've had a couple of solutions that will work. The macromedia
function, and the direct reference to the element -
document.formName.elements['listBoxName[]']. For me the direct
reference to the element is the most simple, and you can access the
properties in the normal way e.g.
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
Ryan,
you should be able to refer to the listbox in javascript as
document.formName.elements['listBoxName[]'].
Hope this helps... Dusty
Ryan Jameson wrote:
That's not the problem. The problem is referring to the listbox via
javascript. It doesn't like the format:
Ryan Jameson (USA) wrote:
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.
There is a function called
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
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
Patel, Aman wrote:
Ryan Jameson (USA) wrote:
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.
There is a