# Flash PHP Form, Radio Buttons, ARG! Need help!

**URL:** <https://forum.kirupa.com/t/flash-php-form-radio-buttons-arg-need-help/280968>\
**Category:** flash\
**Created:** [February 3, 2009, 3:51pm UTC](https://forum.kirupa.com/t/flash-php-form-radio-buttons-arg-need-help/280968 "2009-02-03T15:51:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShareeNeff](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@ShareeNeff](https://forum.kirupa.com/u/ShareeNeff)\
**Post date:** [February 3, 2009, 3:51pm UTC](https://forum.kirupa.com/t/flash-php-form-radio-buttons-arg-need-help/280968/1 "2009-02-03T15:51:33Z")

</div>

Hi there- I’ve been searching the tutorials on creating Flash PHP Email Forms including radio buttons, and so far I have found some great links but no one has been able to troubleshoot for me. So maybe you can help.

I had this figured out and then I screwed it up. Any advice on what’s not right with my code, or even a point in the right direction ( I’m not asking you to do this for me, I’d like to learn) would be greatly appreciated.

I have a form with 3 input text boxes, and two radio buttons, yes/no in the group “avail”.

Here’s my PHP script:  
\<?php  
$sendTo = “my web address is here”;  
$subject = “Reunion RSVP”;  
$headers = “From: " . $\_POST[“name”] . “\<” . $\_POST[“email”] .”\>  
";  
$headers .= "Reply-To: " . $\_POST[“email”] . "  
";  
$headers .= "Return-path: " . $\_POST[“email”];  
$message = "Maiden Name: " .$\_POST[“maiden”];  
$message.= .$\_POST[‘avail’];  
$message = "Guest Name: " .$\_POST[“guest”];  
mail($sendTo, $subject, $message, $headers);  
?\>

.fla file:

Form has instance name of rsvpform

Radio Group ‘avail’:  
Radio button “Yes” has instance name of rsvp\_true  
Radio button “No” has instance name of rsvp\_false

Send button .as:  
on (release)  
{  
// send variables in form movieclip (the textfields)  
// to email PHP page which will send the mail  
// rsvpform.loadVariables(“email.php”, “POST”);  
var rsvp\_lv = new LoadVars();  
rsvp\_lv.name = rsvpform.name;  
rsvp\_lv.email = rsvpform.email;  
rsvp\_lv.maiden = rsvpform.maiden;  
rsvp\_lv.guest = rsvpform.guest;  
if (rsvpform.rsvp\_true.selected) {  
rsvp\_lv.avail = “Yes”;  
}  
else {  
rsvp\_lv.avail = “No”;  
}  
rsvp\_lv.sendAndLoad(“rsvp.php”, rsvp\_lv, “POST”);  
}

I know I need to call the buttons, and I had that working but I tweaked it and can’t figure out how to get it back. Frustrated! I have books surrounding me on this stuff and still, such a simple task and I can’t figure it out.
