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
$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!