I am assisting someone on the forum with a contact form. I added just one line of code and made a PHP script using senoculars “Flash Based Email Form” tutorial. After uploading the swf and php to my site for testing I am able to get subject and the message emailed from the PHP script but no headers. The headers are From, Phone, Email Address. Here is the PHP script without a legitimate email address of course ( I erased it for posting) ;
<?php
$sendTo = "email@email.com";
$subject = "site message";
$headers = "From: " . $_POST["t1_2"];
$headers = "Phone: " . $_POST["t3_2"];
$headers .= "<" . $_POST["t2_2"] . ">
";
$headers .= "Reply-To: " . $_POST["t2_2"] . "
";
$headers .= "Return-Path: " . $_POST["t2_2"];
$message = $_POST["t4_2"];
mail($sendTo, $subject, $message, $headers);
?>
and the line of script I added
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#0000ff]on[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[/LEFT]
_root.[COLOR=#000080]form[/COLOR].[COLOR=#0000ff]loadVariables[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“email.php”[/COLOR], [COLOR=#ff0000]“POST”[/COLOR][COLOR=#000000])[/COLOR];
[LEFT][COLOR=#000000][/COLOR]
[COLOR=#000000]}[/COLOR][/LEFT]
[/FONT]
any Ideas???