Hey all. Hope you can help. Sorry if this topic has already been covered.
I’m building a site for a band I’m in. I made a Flash/Php mail form, which will send me an email, but… It doesn’t “read” the boxes you fill out, EG “name”, “email” & “message”.
The problem is not sending an email as such, but the input fields aren’t read. I get the email with the subject line okay, but nothing else is posted in the email.
I followed the tutorial on the site, and used that AS/php script. I’ve tried shifting to php4 (from php5) on the server, but it doesn’t help. (Thought it might be an old tutorial…)
I’ve read the different scripts over and over, and the names seem to correspond, but here goes:
php script:
<?php
$sendTo = "something@hotmail.com";
$subject = “flashback-live.dk”;
$headers = "From: " . $_POST[“name”];
$headers .= “<” . $_POST[“email”] . ">
";
$headers .= "Reply-To: " . $_POST[“email”] . "
";
$headers .= "Return-Path: " . $_POST[“email”];
$message = $_POST[“message”];
mail($sendTo, $subject, $message, $headers);
?>
In the actionsscript i appropriately named the different input textfields ‘name’, ‘email’, ‘message’. (Without the quotes, of course). The problem is not sending an email as such, but the input fields aren’t read. I get the email with the subject line okay…
Hope someone can help me with this, as it’s really annoying… And I’m a n00b at both AS & php.