PDA

View Full Version : flash-php mail form.... again



Flashmatazz
March 4th, 2004, 05:07 PM
I used the code from the 'flash-based email form' tutorial: http://www.kirupa.com/developer/actionscript/flash_php_email.htm

For some strange reason the name variable is not showing up in the email.
I did not make major changes. Only thing I did in Flash was renaming the textfield variable 'name' into 'naam', and renaming 'message' into 'bericht'.

I did the same in the php-code however:


$sendTo = "info@blahbla.nl";
$subject = "my subject";

$headers = "Van: " . $_POST["naam"];
$headers .= "<" . $_POST["email"] .">\r\n";
$headers .= "Reply-To: " . $_POST["email"];

$message = $_POST["bericht"];

mail($sendTo, $subject, $message, $headers);


In the received email I do have the <email-adrress> and Reply-To
but not the "Van: " naam

Am I doing something wrong here??

Flashmatazz
March 6th, 2004, 04:04 AM
It looks like sometimes the other variables aren't sent either.
Any ideas anyone?