PDA

View Full Version : PHP + FLASH mailer



daydream
January 25th, 2004, 12:45 AM
Hi all,
I tried using the tutorial from the FLASH + PHP emailer section and wasnt successful. This is the error message I got from the "email.php" file on my server:

Notice: Undefined index: name in C:\webspace\syrup\pointrecords.com\pointrecords.co m\www\email.php on line 6

Notice: Undefined index: email in C:\webspace\syrup\pointrecords.com\pointrecords.co m\www\email.php on line 7

Notice: Undefined index: email in C:\webspace\syrup\pointrecords.com\pointrecords.co m\www\email.php on line 9

Notice: Undefined index: message in C:\webspace\syrup\pointrecords.com\pointrecords.co m\www\email.php on line 11


The "email.php" contents is as follows :

<?php

$sendTo = "myemail@email.com";
$subject = "My Flash site reply";

$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] .">\r\n";

$headers .= "Reply-To: " . $_POST["email"];

$message = $_POST["message"];

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

I couldnt find anything wrong..... HELP please

Jubba
January 25th, 2004, 02:01 AM
only use the single quotes. not double quotes...

$_POST['email']

$_POST['message']

etc.. that might help...

daydream
January 25th, 2004, 02:49 AM
I tried and it still doesnt work. Argh, this frustrating !!! Could it be the .fla file instead ?? The form variables are 'name' , 'email' and 'message' respectively in the fields as per the example shown in http://www.kirupa.com/developer/actionscript/flash_php_email.htm ........... and its still not working, wat gives ?