# Multiple Selection Email Form

**URL:** <https://forum.kirupa.com/t/multiple-selection-email-form/161108>\
**Category:** programming\
**Created:** [August 31, 2005, 10:39pm UTC](https://forum.kirupa.com/t/multiple-selection-email-form/161108 "2005-08-31T22:39:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brentr](https://avatars.discourse-cdn.com/v4/letter/b/ebca7d/32.png) [@brentr](https://forum.kirupa.com/u/brentr)\
**Post date:** [August 31, 2005, 10:39pm UTC](https://forum.kirupa.com/t/multiple-selection-email-form/161108/1 "2005-08-31T22:39:02Z")

</div>

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:

```auto
 
<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
<?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.

```php
if ($Options){foreach ($Options as $t){echo 'You selected ',$t,'<br />';}} 

```
