Re: [PHP-DB] Multiselect List. .

2005-05-18 Thread Martin Norland
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 functi

RE: [PHP-DB] Multiselect List

2005-05-18 Thread Dimiter Ivanoff
Well i did not see why the name have to be with brackets [], can you show some code ? If you create the select in the way that i said, the name of the select will not have brackets , and the javascript have to work. --- "Ryan Jameson (USA)" <[EMAIL PROTECTED]> wrote: > That's not the problem. The

Re: [PHP-DB] Multiselect List

2005-05-18 Thread Brent Baisley
It's not a problem. Just refer to it using elements[] document.form_name.elements["fieldname[Value]"] On May 18, 2005, at 2:59 PM, 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

Re: [PHP-DB] Multiselect List. .

2005-05-18 Thread Patel, Aman
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 "MM_fin

Re: [PHP-DB] Multiselect List

2005-05-18 Thread Dusty Bin
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: formName.listBoxName[

RE: [PHP-DB] Multiselect List

2005-05-18 Thread Bastien Koert
have you tried getElementByID()? Bastien From: "Ryan Jameson (USA)" <[EMAIL PROTECTED]> To: "Dimiter Ivanoff" <[EMAIL PROTECTED]> CC: Subject: RE: [PHP-DB] Multiselect List Date: Wed, 18 May 2005 12:59:37 -0600 That's not the problem. The problem is referring to the listbox via javascript. It doe

RE: [PHP-DB] Multiselect List

2005-05-18 Thread Ryan Jameson \(USA\)
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 Iv

[PHP-DB] Multiselect List

2005-05-18 Thread Ryan Jameson \(USA\)
Hey Guys, I'm populating a multiselect list with countries from my database. PHP seems to require the name contain array brackets, ie. myName[]. The problem I'm having is referring to the select list via javascript when the name contains the brackets. Anyone know how? Thanks. <>< Ryan -- PHP Dat

RE: [PHP-DB] Re: Select

2005-05-18 Thread David Robley
Miguel Guirao wrote: > You are right David, I have an auto_increment field!! > > What about this: > $items2 = mysql_query("SELECT DISTINCT rev FROM rev ORDER BY rev", $link); > > where rev is a revision field for parts in my wharehouse!!! > Does it will work in this case? > > Thanks > > -O