[thelist] RE: Arrays and Multiple Select?

McAtee, Malcolm MMcAtee at philamuseum.org
Tue Oct 9 15:20:52 CDT 2001


Sorry for posting this again, but any help would be appreciated.
I still seem unable to pass these form.values in the multiple select.
i am not a php programmer but these seems conceptually sound to me.
Am I making a syntax error? do I need PHP4?(I am on 3) do I need to rename
my file extensions to .php3?

TIA

Malcolm



form.php
====================================================================
       <select name="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>
====================================================================






action.php
====================================================================
<?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:<br>\n";
foreach($Type_of_Event as $event)
{
	print "$event<br>\n";
}


print "Desired Location:$Array[Desired_Location]<br>\n";
print "Special Needs:$Special_Needs<br>\n";
 ?>
====================================================================








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

-----Original Message-----
From: Joshua Olson [mailto:joshua at alphashop.com]
Sent: Friday, October 05, 2001 10:56 AM
To: thelist at lists.evolt.org
Subject: Re: [thelist] RE: Arrays and Multiple Select?


Try changing:

: <select name="Array[Type_of_Event]" size="3" multiple>

to

: <select name="Type_of_Event[]" size="3" multiple>

HTH,

-joshua
----- Original Message ----- 
From: "McAtee, Malcolm" <MMcAtee at philamuseum.org>
Subject: [thelist] RE: Arrays and Multiple Select?


: 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.


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