Php email form

this is what ive done:

[PHP[

<?
// Recieving and Creating Variables…
$Name = $_POST[‘name’];
$Email= $_POST[‘email’];
$Email = "[email protected]";
$Message = $_POST[‘message’];
$Subject = “Contact”;
$Header = “From: $Name <$Email>”;

//Performing Mail script…
mail($Email, $Subject, $Message, $Header);

?>



now everything working with the fla file and a msg sends to my inbox but when some user types his name, email, and message, willl it display his/her email address when i recieve the msg in my inbox?

Yea it should. BTW, y’d u delete the previous post?

Oh! i’m really sorry about this. No it won’t show. Use a separate variable for your email address.
Yu could replace
$Email = "[email protected]";

with

$toEmail = "[email protected]";

and then after $Header, use

$Message = $Email + "

" + $Message

I truly apologize for not going through it properly.

so like this?

<?
// Recieving and Creating Variables…
$Name = $_POST[‘name’];
$Email= $_POST[‘email’];
$toEmail = "[email protected]";
$Message = $_POST[‘message’];
$Subject = “Contact”;
$Header = “From: $Name <$Email>”;

//Performing Mail script…
mail($Email, $Subject, $Message, $Header);

?>

Like this:


<?
// Recieving and Creating Variables...
$Name = $_POST['name'];
$Email= $_POST['email'];
$Message = $_POST['message'];
$toEmail = "[email protected]";
$Subject = "Contact";
$Header = "From: $Name <$Email>";
$Message = $Email + "


" + $Message;


//Performing Mail script...
mail($toEmail, $Subject, $Message, $Header);

?>

The email of the sender will show at the top of the message

somehow not working

hamza, could you take a look at my fla/php?

here they are:

this is the php script

(note: the script is in .txt because uploading .php is not possible)

this is what it says in my msn:

From : dhd <[email protected]>
Sent : Wednesday, 17 December 2003 3:01:02 PM
To : [email protected]
Subject : Contact

0 (this is the text msg area)

the "[email protected]" should be the sender’s email address
and ive tested it with one of my friends and it doesnt show his address.