# I got the Mailer put how do i add more options?

**URL:** <https://forum.kirupa.com/t/i-got-the-mailer-put-how-do-i-add-more-options/30345>\
**Category:** Uncategorized\
**Created:** [September 7, 2003, 2:14pm UTC](https://forum.kirupa.com/t/i-got-the-mailer-put-how-do-i-add-more-options/30345 "2003-09-07T14:14:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Not2Sure](https://avatars.discourse-cdn.com/v4/letter/n/dfb087/32.png) [@Not2Sure](https://forum.kirupa.com/u/Not2Sure)\
**Post date:** [September 7, 2003, 2:14pm UTC](https://forum.kirupa.com/t/i-got-the-mailer-put-how-do-i-add-more-options/30345/1 "2003-09-07T14:14:36Z")

</div>

I am trying to add a PHP form mailer to my site. i have it all set up but i want to add more things like radio buttons, check boxes, drop down list… etc.

this is Mailer.php

```php

<?PHP 
###################### Set up the following variables ###################### 
# 
$to = "me@me.com"; #set address to send form to 
$subject = "Results from your Request Info form"; #set the subject line 
$headers = "From: Form Mailer"; #set the from address, or any other headers 
$forward = 0; # redirect? 1 : yes || 0 : no 
$location = "example.com"; #set page to redirect to, if 1 is above 
# 
##################### No need to edit below this line ###################### 

## set up the time ## 

$date = date ("l, F jS, Y"); 
$time = date ("h:i A"); 

## mail the message ## 

$msg = "Below is the result of your feedback form. It was submitted on $date at $time.

"; 

if ($_SERVER['REQUEST_METHOD'] == "POST") {
	foreach ($_POST as $key => $value) { 
		$msg .= ucfirst ($key) ." : ". $value . "
"; 
	}
}
else {
	foreach ($_GET as $key => $value) { 
		$msg .= ucfirst ($key) ." : ". $value . "
"; 
	}
}

mail($to, $subject, $msg, $headers); 
if ($forward == 1) { 
    header ("Location:$location"); 
} 
else { 
    echo "Thank you for submitting our form. We will get back to you as soon as possible."; 
} 

?>

```

and this is my HTML

```php

<form action="mailer.php" method="post">
Your Name: <input type="text" name="test"><br>
Your Email: <input type="text" name="email"><br>
Your Message:<br> <textarea name="message" rows="5" cols="30"></textarea><br>
<input type="submit" name="submit" value="Submit">
</form>

```
