Albinal
07-31-2007, 09:11 AM
I've got a flash to php form on my site that works 100% of the time... for me. Unfortunately, I keep receiving undefined emails through it. Since it works for me I don't know why it wouldn't work for someone else. Please can someone help?
The code in the flash file is this:
send_mc.onRelease = function()
{
loadVariablesNum ("form_send.php?sName=" + sName + "&sContact=" + sContact + "&sComments=" + sComments , 0, "POST");
}
In the php file it's this:
<?
$sName=$_GET["sName"];
$sContact=$_GET["sContact"];
$sComments=$_GET["sComments"];
$to .= "me@mywebsite.com";
$subject .= "My website contact form";
//Main body
$msg .= "Name: $sName\n\n";
$msg .= "E-mail address: $sContact\n\n";
$msg .= "Comments/message: $sComments\n\n";
mail($to, $subject, $msg, "From: USER@mywebsite.com\nReply-To: $sContact\n");
?>
I'm totally stuck and obviously can't test it, because it works!!!
The code in the flash file is this:
send_mc.onRelease = function()
{
loadVariablesNum ("form_send.php?sName=" + sName + "&sContact=" + sContact + "&sComments=" + sComments , 0, "POST");
}
In the php file it's this:
<?
$sName=$_GET["sName"];
$sContact=$_GET["sContact"];
$sComments=$_GET["sComments"];
$to .= "me@mywebsite.com";
$subject .= "My website contact form";
//Main body
$msg .= "Name: $sName\n\n";
$msg .= "E-mail address: $sContact\n\n";
$msg .= "Comments/message: $sComments\n\n";
mail($to, $subject, $msg, "From: USER@mywebsite.com\nReply-To: $sContact\n");
?>
I'm totally stuck and obviously can't test it, because it works!!!