# Flash mail form with radio buttons

**URL:** <https://forum.kirupa.com/t/flash-mail-form-with-radio-buttons/235771>\
**Category:** Uncategorized\
**Created:** [August 14, 2007, 4:33pm UTC](https://forum.kirupa.com/t/flash-mail-form-with-radio-buttons/235771 "2007-08-14T16:33:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Syous](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@Syous](https://forum.kirupa.com/u/Syous)\
**Post date:** [August 14, 2007, 4:33pm UTC](https://forum.kirupa.com/t/flash-mail-form-with-radio-buttons/235771/1 "2007-08-14T16:33:07Z")

</div>

Alright so I have an email form built in flash, works great done em a thousand times. The only issue I’m having is with the radio buttons…

I have two radio buttons, one called ‘blue’ the other called ‘green’, they are in a group called color. How do I pass the information to PHP? Currently whenever I submit the ifno, in the email it reads…Color: [object Object]

I know that I only have a few options defined in $msg, just trying to get service to work.

```php
<?

$sendTo = "david@designsbyrema.com";
$subject = "Contact Request";

$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$message = $_POST['message'];
$service = $_POST['service'];
$month = $_POST['month'];
$day = $_POST['day'];
$year = $_POST['year'];
$preferred = $_POST['preferred'];

$headers = "From: ". $name . "<" . $email . ">
";

$headers .= "Reply-To: " . $_POST["email"] . "
";

$headers .= "Return-path: " . $_POST["email"];

$msg = "
Name: " .$name;
$msg .= "
Phone: " .$phone;
$msg .= "
eMail: " .$email;
$msg .= "\r
Message: " .$message;
$msg .= "\r
Service: " .$service;

mail($sendTo,$subject,$msg,$headers);
?>

```
