If your php.ini have "register_globals = off" you have to request the variables from flash by php in this mode:
Add these lines at the begin of the php file:
$ToEmail = $_REQUEST["toEmail"];
$ToName = $_REQUEST["toName"];
$ToSubject = $_REQUEST["ToSubject"];
$FirstName = $_REQUEST["FirstName"];
$Email = $_REQUEST["Email"];
$Company = $_REQUEST["Company"];
$ToComments = $_REQUEST["ToComments"];
$HearAbout = $_REQUEST["HearAbout"];
Also you can use $_POST["yourflashvariable"]; if the variables are sent in POST method or $_GET["yourflashvariable"]; if the variables was send by flash in GET method
And your file should look like:
<?
$ToEmail = $_REQUEST["toEmail"];
$ToName = $_REQUEST["toName"];
$ToSubject = $_REQUEST["ToSubject"];
$FirstName = $_REQUEST["FirstName"];
$Email = $_REQUEST["Email"];
$Company = $_REQUEST["Company"];
$ToComments = $_REQUEST["ToComments"];
$HearAbout = $_REQUEST["HearAbout"];
$EmailBody = "Sent By: $FirstName \n Senders Email: $Email \n Senders Company: $Company \n \n Message Sent: \n $ToComments \n\n Sender Heard About Site From: $HearAbout \n";
$EmailFooter="\nThis message was sent by: $FirstName from $REMOTE_ADDR If you feel that you recieved this e-mail by accident please contact us at
www.dedaldesign.ro";
$Message = $EmailBody.$EmailFooter;
mail($ToEmail, $ToSubject, $Message, "From: ".$FirstName." <".$Email.">");
Print "_root.Mail.EmailStatus=Complete - Your mail has been sent";
?>
or set register_register_globals = on but most servers worldwide use it to off by security reasons.
For any question contact me at
cristi@dedaldesign.ro beacause I'm not
gonna check this forum again
PS: jeffrey, be more relevant in your tutorials. You should say this
thing to newbies. Or you are . . . but you should know that will not work with
register_globals off