: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…
===================================================================
<?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 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”, 0, “POST”);
gotoAndStop(2);
}
}