Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

RE: [PHP-DB] Multiselect List
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/> 



 ****************************************
******************************

IMPORTANT NOTICE

This communication is for the exclusive use of the intended recipient(s)
named above. If you receive this communication in error, you should
notify the sender by e-mail or by telephone (+44) 191 224 4461, delete
it and destroy any copies of it.

This communication may contain confidential information and material
protected by copyright, design right or other intellectual property
rights which are and shall remain the property of Piranha Studios
Limited. Any form of distribution, copying or other unauthorised use
of this communication or the information in it is strictly prohibited.
Piranha Studios Limited asserts its rights in this communication and
the information in it and reserves the right to take action against
anyone who misuses it or the information in it.

Piranha Studios Limited cannot accept any liability sustained as a
result of software viruses and would recommend that you carry out your
own virus checks before opening any attachment.

 ****************************************
********************************
<<<<GWAVAsig>>>>

Report this thread to moderator Post Follow-up to this message
Old Post
RJameson@usa.ibs.org
05-19-05 01:55 PM


Re: [PHP-DB] Multiselect List
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.
document.formName.elements['listBoxName[]'].value

Is there somethime more that you need??

hth... Dusty
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
<snip>

Report this thread to moderator Post Follow-up to this message
Old Post
Dusty Bin
05-19-05 08:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP DB archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:57 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.