[thelist] Multiple Select??

McAtee, Malcolm MMcAtee at philamuseum.org
Fri Sep 21 10:51:04 CDT 2001


<select name="Type_of_Event[]" size="6" multiple> --


I now recieve Type of Event: Array.....
Do I need to add something to the results page? (see below)
I apologize for the simple questions, did I mention this is my first PHP
app?

TIA Malcolm

 
You Have Entered the Following Information:<br>

<?php
print "Date:$Date<br>\n";
print "Company:$Company<br>\n";
print "Contact:$Contact<br>\n";
print "Address:$Address<br>\n";
print "Telephone:$Telephone<br>\n";
print "FAX:$FAX<br>\n";
print "eMail:$eMail<br>\n";
print "Date of Event:$Date_of_Event<br>\n";
print "Type of Event:$Type_of_Event<br>\n";
print "Number of Attendees:$Number_of_Attendees<br>\n";
print "Desired Location:$Desired_Location<br>\n";
print "Special Needs:$Special_Needs<br>\n";
 ?>
 

<?php
 mail
("mmcatee at philamuseum.org", "Facilities Inquiry", 
"Date:$Date
 Company:$Company
 Contact:$Contact
 Address:$Address
 Telephone:$Telephone
 eMail:$eMail
 Date of Event:$Date_of_Event
 Type of Event:$Type_of_Event
 Number of Attendees:$Number_of_Attendees
 Desired Location:$Desired_Location
 Special Needs:$Special_Needs
","FROM:Inquiry_Form")
?>






//---------------//
Malcolm J. Mcatee
Web Designer
Philadelphia Museum of Art
215-684-7748
mmcatee at philamuseum.org
//---------------//

-----Original Message-----
From: Carl-Johan Kihlbom [mailto:div at newcode.se]
Sent: Friday, September 21, 2001 8:11 AM
To: thelist at lists.evolt.org
Subject: Re: [thelist] Multiple Select??


>
>> I am creating a form to be used in a simple PHP/email
>> app. Everything seems to be working well except that my multiple
>> select lists seem to pass only the first value in the list.  Please
>> see the code below:
>>
>>        <select name="Type_of_Event" size="6" multiple>

You should use <select name="Type_of_Event[]" size="6" multiple>. Then 
the values will be stored in the array $Type_ofEvent.

/ Carl-Johan

---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt ! 




More information about the thelist mailing list