# Sending radio button form data to PHP email generator

**URL:** <https://forum.kirupa.com/t/sending-radio-button-form-data-to-php-email-generator/183764>\
**Category:** flash\
**Created:** [March 29, 2006, 9:10pm UTC](https://forum.kirupa.com/t/sending-radio-button-form-data-to-php-email-generator/183764 "2006-03-29T21:10:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonb](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jonb](https://forum.kirupa.com/u/jonb)\
**Post date:** [March 29, 2006, 9:10pm UTC](https://forum.kirupa.com/t/sending-radio-button-form-data-to-php-email-generator/183764/1 "2006-03-29T21:10:58Z")

</div>

I’ve bene struggling with this for 2 days!

I’ve got a form with 5 radio buttons and two text forms. My submit button has this as:

> on (release) {  
> form.loadVariables(“email.php”, “POST”);  
> }

and my email.php code is this:

```php
<?php
$sendTo = "nycbmc@gmail.com";
$subject = "Lifetime Achievement Voting";

$vote = "I voted for: " .$_POST["vote"]; 
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-Path: " . $_POST["email"];

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

```

The radio buttons belong to group called “vote”

Everything works, except I get this messsage in the email that’s generated:

> I voted for: [object Object]

I think the problem is with the radio button AS, like maybe I need in include a “get value” function, but I’m not sure. I’ve tried many different versions, but nothing seems to work.

Any ideas? Please? Thanks!

---

<div class="post-metadata">

**Author:** ![fattony](https://avatars.discourse-cdn.com/v4/letter/f/b5e925/32.png) [@fattony](https://forum.kirupa.com/u/fattony)\
**Post date:** [March 29, 2006, 10:34pm UTC](https://forum.kirupa.com/t/sending-radio-button-form-data-to-php-email-generator/183764/2 "2006-03-29T22:34:33Z")

</div>

You obviously used the radio button object, most objects contain a bunch of useless code I myself am working on a contact page much like yours and my send button wouldn’t work until I changed it to standard text convert into a symbol.
