472,098 Members | 2,524 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,098 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:
<td align="right">Legal Category #1:</td>
<td><?=ptypes($_POST['primary_specialty'], "primary_specialty")?></td>

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 1717
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>

Dec 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by LU | last post: by
3 posts views Thread by KatMagic | last post: by
4 posts views Thread by TycoonUK | last post: by
3 posts views Thread by mark.norgate | last post: by

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.