I just would like to figure out how to send the array values in my multiple selection to my php email form. This is what I have to far.
Here is my HTML code for the multiple selection in the form:
<select name="Options[]" size="4" multiple id="Options">
<option value="One">One</option>
<option value="Two">Two</option>
<option value="Three">Three</option>
</select>
And here is the php code to process the email form:
<?php
$Name = stripslashes($Name);
$subject = ("TEST");
$text = stripslashes("
Options: $Options");
mail('brent@variantstudios.com',$subject,$text,"From: $Name
BCC: brent@variantstudios.com\r");
header("location:form.php?status=sent");
?>
I found this code and it works to write out my selections but I can’t seem to modify it to work in my email form code.
if ($Options){foreach ($Options as $t){echo 'You selected ',$t,'<br />';}}