For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > May 2005 > RE: [PHP-DB] Multiselect List









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PHP-DB] Multiselect List
Dimiter Ivanoff

2005-05-18, 8:55 pm

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)" <RJameson@usa.ibs.org> 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.
>
> <>< Ryan
>
> ________________________________
>
> From: Dimiter Ivanoff [mailto:e_ra_se_r@yahoo.com]
> 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)" <RJameson@usa.ibs.org> 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[].
> 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 Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> ________________________________
>
> How much free photo storage do you get? Store your
> holiday snaps for
> FREE with Yahoo! Photos. Get Yahoo! Photos
>

<http://us.rd.yahoo.com/mail/uk/tagl...http://uk.photo
> s.yahoo.com/>
>






________________________________________
___________________
Yahoo! Messenger - want a free and easy way to contact your friends online? http://uk.messenger.yahoo.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com