473,386 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Selecting more than 1 item on drop down menu ??

I have a drop down menu where people are able to select 1 item.
However, I want to modify the drop down list so that the person can
select more than 1 item (i.e by holding down the shift button and
highlighting multiple items). Can somebody please let me know how to
modify the php code so that they can select more than 1 item at a
time?? Thanks greatly in advance.

Here is the applicable .php code I believe from 2 different files:

FILE #1:
<tr>
<td align="right">Legal Category #1:</td>
<td><?=ptypes($_POST['primary_specialty'], "primary_specialty")?></td>
</tr>
----


FILE #2:
$q1 = "insert into legal_members set
username = '$_POST[NewUsername]',
password = '$_POST[p1]',
firm = '$my_firm',
primary_specialty = '$_POST[primary_specialty]',
secondary_specialty = '$_POST[secondary_specialty]',
gender = '$_POST[gender]',
FirstName = '$_POST[FirstName]',
LastName = '$_POST[LastName]',
address = '$my_address',
city = '$_POST[city]',
state = '$_POST[state]',
country = '$_POST[country]',
phone = '$_POST[phone]',
cellular = '$_POST[cellular]',
pager = '$_POST[pager]',
email = '$_POST[email]',
website = '$_POST[website]',
law_school = '$my_ms',
college = '$my_rt',
graduation_year = '$_POST[graduation_year]',
memberships = '$my_members',
bio = '$my_bio',
military = '$_POST[military]',
birthyear = '$_POST[birthyear]',
picture = '$new_picture',
RegDate = '$t',
ExpDate = '$MyExp' ";

Dec 18 '05 #1
3 1771
It's not doable. A drop-down select box can't have the multiple
attribute. You will have to make it a multi-line select.

Dec 18 '05 #2
I'm a novice. Could you tell me how to do that? Pleeeeeeeeease.
Thanks in advance.

:)

Dec 18 '05 #3
<select multiple size="5">
<option>Bobo the Clown</option>
<option>Jeff the Flame-eater</option>
</select>

Dec 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Haines Brown | last post by:
I've implemented the horizontal drop down menu discussed recently in this newsgroup, and it works nicely under Galeon and Mozilla, but not IE 5.0. Here are the problems: Under IE 5.0, the...
0
by: LU | last post by:
I have a datagrid for viewing and deleting. Under that I have a drop down with binded info and a button to add the select drop down item into database. 1User can view datagrid and delete info....
6
by: Mike Wilson | last post by:
Dear Group, I have a heirarchical set of database tables, say - "order" and "order_type" and want to display a series of orders in a grid control, and in place of the order_type foreign key...
3
by: KatMagic | last post by:
How do you force a drop down list to default to a particular item based on its value? I have a drop down list with options Yes, No, Maybe, All, and I would like it to default to "All" This is...
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
3
by: SQLjunky | last post by:
Hello, Contrary to what my screen name indicates, i'm actually quite new to SQL. Having said that, I'll get right into my problem. I'm trying to query an mssql database to return to the value...
2
by: SunnySnow29 | last post by:
Hi, I have a 2 drop down lists in C# populated with data from a SQL 2005 db. When a new item of data is inserted the second list must update to reflect the change (the first drop down list will...
3
by: mark.norgate | last post by:
Hi Another problem... My drop down is always defaulting to selecting the first item in the drop down, even though I've got code specifically to change it to a different item: Dim adapter...
1
by: bytenut | last post by:
I would like to display two field values in a combo after selecting from the list items... i.e. my drop-down shows two fields from a lookup, but when I select the item, only the first field value is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.