# Radio Button Issue In Email "HELP ME PLEASE"

**URL:** <https://forum.kirupa.com/t/radio-button-issue-in-email-help-me-please/233959>\
**Category:** programming\
**Created:** [July 28, 2007, 7:44pm UTC](https://forum.kirupa.com/t/radio-button-issue-in-email-help-me-please/233959 "2007-07-28T19:44:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcaira](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@rcaira](https://forum.kirupa.com/u/rcaira)\
**Post date:** [July 28, 2007, 7:44pm UTC](https://forum.kirupa.com/t/radio-button-issue-in-email-help-me-please/233959/1 "2007-07-28T19:44:27Z")

</div>

:stare: Hi All :stare:  
I need some serious help, I have read over 200 tutorials, ad maybe I just don’t get it!  
“Thick Head + Brick Wall = Broken Bricks”

I have a form built, and it has about 20 or so fields, I added a few radio buttons and assigned them a group name of performanceGroup and musicGroup. When someone fills out the form, I get the results emailed to me, I get everything but the Radio Button results.  
In those fields I get [object Object].

I have listed the PHP & Flash Code below and highlighted the fields that are related to the radio buttons. If someone could please help I would appreciate it, I am very new to PHP…:book:

===================================================================

\<?php // Names below must match the names used used for your input boxes (fields) in Flash  
include(“global.inc.php”);  
$errors=0;  
$error=“The following errors occured while processing your form input.\<ul\>”;  
pt\_register(‘POST’,‘First\_Name’);  
pt\_register(‘POST’,‘Last\_Name’);  
pt\_register(‘POST’,‘Address’);  
pt\_register(‘POST’,‘City’);  
pt\_register(‘POST’,‘State’);  
pt\_register(‘POST’,‘Zip’);  
pt\_register(‘POST’,‘Country’);  
pt\_register(‘POST’,‘Province’);  
pt\_register(‘POST’,‘Telephone’);  
pt\_register(‘POST’,‘Fax’);  
pt\_register(‘POST’,‘Email’);  
pt\_register(‘POST’,‘EventDate’);  
pt\_register(‘POST’,‘EventLocation’);  
pt\_register(‘POST’,‘eventType’);  
pt\_register(‘POST’,‘EventOther’);  
pt\_register(‘POST’,‘Venue’);  
pt\_register(‘POST’,‘ShowTime’);  
\*\*[COLOR=blue]pt\_register(‘POST’,‘performanceGroup’);  
[/COLOR]\*\*pt\_register(‘POST’,‘ShowTime\_Other’);  
[COLOR=blue]\*\*pt\_register(‘POST’,‘musicGroup’);  
\*\*[/COLOR]pt\_register(‘POST’,‘Budget’);  
pt\_register(‘POST’,‘People’);  
pt\_register(‘POST’,‘FoundHow’);  
pt\_register(‘POST’,‘Comments’);  
if($errors==1) echo $error;  
else{  
$where\_form\_is=“http”.($HTTP\_SERVER\_VARS[“HTTPS”]==“on”?“s”:"")."://".$SERVER\_NAME.strrev(strstr(strrev($PHP\_SELF),"/"));  
// Useful if you need todays date:  
//$today = Time();  
//$Date = date(“y-m-d”);  
// Names below must match the names used used for your input boxes (fields) in Flash  
$message="  
Booking Quote:  
First\_Name: “.$First\_Name.”  
Last\_Name: “.$Last\_Name.”  
Address: “.$Address.”  
City: “.$City.”  
State:".$State."  
Zip Code: “.$Zip.”  
Country:".$Country."  
Province: “.Province.”  
Telephone: “.$Telephone.”  
Fax:".$Fax."  
Email: “.$Email.”  
EventDate: “.$EventDate.”  
Event Location: “.$EventLocation.”  
Event Type: “.$eventType.”  
Event Other: “.$EventOther.”  
Venue: “.$Venue.”  
Length of Engagement: “.$ShowTime.”  
**[COLOR=blue]Performance Time: “.$performanceGroup”[/COLOR]**  
Show Time Other: “.$ShowTime\_Other.”  
\*\*[COLOR=blue]Music Specifications: “.$musicGroup.”  
[/COLOR]\*\*Music Budget: “.$Budget.”  
How We Were Found: “.$FoundHow.”  
Special Requests: “.$Comments.”  
";  
$message = stripslashes($message);  
// Fill in the details below for where you want the email to go to  
mail("[myEmail@comcast.net","Website](mailto:myEmail@comcast.net) Booking Request ",$message,“From:$Email”);  
}  
?\>

**[COLOR=red]The Flash Code on the button is:[/COLOR]**

on (release) {  
if (First\_Name eq “” || Last\_Name eq “” || Telephone eq “” ||Email eq “” ||EventDate eq “”) {  
errorBox.\_x= 32;  
// Otherwise process the form and go to frame 2  
} else {  
loadVariablesNum(“[http://www.OurWebsiteAddress.com/MainSite/swf/process.php](http://www.OurWebsiteAddress.com/MainSite/swf/process.php)”, 0, “POST”);

```
    gotoAndStop(2);
}

```

}
