Hi. I am trying to send a form from flash mx 04 over to a mail script that I did in PHP. When I send the variables through flash by GET I get this output:
include/form.php?phone=%2B34+934%2D360%2D698&company=tedc%40casamidy2Ecom&text=I+have+no+message&mail=None&name=Ted+Conn
So therefore I am sending the variables right…
$phone
$company
$mail
$name
$text
ok so then I change it to send the variables from flash by post of course (the get was only so I could see them)… then include/form.php is like this:
<?
$name = $_POST['name'];
$email = $_POST['email'];
$company = $_POST['company'];
$comments = $_POST['text'];
$message="<b>Name:</b> $name <br> <b>Email:</b> $email<br> <b>Company:</b> $company<br><br> <i>$comments</i>
$message=nl2br($message);
$headers ="MIME-Version: 1.0
";
$headers.="X-Mailer: (".$_SERVER['REMOTE_ADDR'].")
";
$headers.= "Content-type: text/html; charset=iso-8859-1
";
$headers.= "From: ".$Name." <".$Email.">
";
$to="ted@tedconn.com";
$subject= "ChamberlainNY Web Contact Form";
if (!mail($to, $subject, $message, $headers))
echo "Error sending mail";
?>
So it should get the email right at ted@tedconn.com? Am I doing something terribly wrong? Is my question in the wrong forum? :h: :h: :h:
thank you very much for any help, this last stupid detail is keeping me from getting my commission…
Ted
edit: I just realized that the mail variable is wrong, but it should still send!