Reply to php script for mail form - question -

Your name:

Reply:


Posted by cartoonsmart on 12/08/05 15:12

Hi I got the following script going;

<?php
$sendTo = "myemail@myemail.com";
$subject = "My web site reply";

$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["email"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?>

It's simple and save and I'm not really into php (yet!)...
However I have a question regarding my script.
In the Email body/message I receive after the form is filled in and
submited
I only see the message - obvousily because of this line $message =
$_POST["message"]; -
Now I would like to receive to name and email address in mail
body/message to.
How do I go about to achieve this, I've tried the following...

$message = $_POST["name"];
$message = $_POST["email"];

after I added the above two lines it didn't result in anything.
Anyone wanna fill me in on how I can put this to work.
Thank, appreciate it!

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация