[thelist] RE: Arrays and Multiple Select?

McAtee, Malcolm MMcAtee at philamuseum.org
Fri Oct 5 12:39:39 CDT 2001


I am creating a PHP enabled mail form.
I seem to be only able to transmit one selection from a multiple select
list.

Any help would be appreciated.


Thanks Malcolm

Form:
	<select name="Array[Type_of_Event]" size="3" multiple>
	  <option value="Dinner">Dinner</option>
	  <option value="Lunch">Lunch</option>
	  <option value="Breakfast">Breakfast</option>
	  <option value="Cocktail Reception">Cocktail Reception</option>
	  <option value="Meeting">Meeting</option>
	  <option value="Other">Other</option>
	 </select>


Form Results:


<?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:$Array[Type_of_Event]<br>\n";
print "Number of Attendees:$Number_of_Attendees<br>\n";
print "Desired Location:$Array[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
 FAX:$FAX
 eMail:$eMail
 Date of Event:$Date_of_Event
 Type of Event:$Array[Type_of_Event]
 Number of Attendees:$Number_of_Attendees
 Desired Location:$Array[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
//---------------//





More information about the thelist mailing list