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">L egal Category #1:</td>
<td><?=ptypes($ _POST['primary_specia lty'], "primary_specia lty")?></td>
</tr>
----
FILE #2:
$q1 = "insert into legal_members set
username = '$_POST[NewUsername]',
password = '$_POST[p1]',
firm = '$my_firm',
primary_special ty = '$_POST[primary_special ty]',
secondary_speci alty = '$_POST[secondary_speci alty]',
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' "; 3 1797
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.
I'm a novice. Could you tell me how to do that? Pleeeeeeeeease.
Thanks in advance.
:)
<select multiple size="5">
<option>Bobo the Clown</option>
<option>Jeff the Flame-eater</option>
</select> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 there is no drop down menu functionality at all.
I wanted to implement an alternative stylesheet for IE, but my
link to it is apparently broken. What...
|
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.
2User can select from drop down, click add button and add
selection to database.
A)Datagrid binds and deletes fine.
B)If I select the first value of...
|
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 identifier, I would like a dropdown combo box
(lookup from the "order_type" table) to change the type of the order. I also
need an update command...
|
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 my code, what am I doing wrong?
ddlBilling.SelectedIndex =
ddlBilling.Items.IndexOf(ddlBilling.Items.FindByValue("All"))
|
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 if it works, and if it does not, tell me why it does not
work.
Thanks.
| |
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 that the user inputs through a drop-down menu in the databases GUI front-end (bugzilla actually). For example, a product is selected in a drop-down...
|
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 always be unchanged by inserts) and the new value must become the selected value in drop down list 2. I use databind() after the form has autoposted...
|
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 As SqlDataAdapter = New
SqlDataAdapter("SELECT appId, appName FROM application WHERE segmentID
|
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 shown in the combo text area (at the top)...
(bound field is invisible)
e.g. Currently seeing (standard behavior)
drop-down | 1
...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |