A
Anonymous
Guest
Quick question for someone new to PHP. I have a pretty good background in ColdFusion, and was able to piece this together from my CF knowledge and what's on the php.net web site, but it's not working the way I'd like. Any ideas on what's wrong?
Thanks very much in advance.
The following script processes data "message," "email," and "name" posted from a simple form.
Thanks very much in advance.
The following script processes data "message," "email," and "name" posted from a simple form.
Code:
<?php
$message = "<?php echo $_POST["message"]; ?>";
$header = "From: <?php echo $_POST["email"]; ?>";
$name = "<?php echo $_POST["name"]; ?>";
mail ("me@myhost.com", "New Website Contact", $message, $header);
{print "Thank you, $name, for your feedback.\n";}
exit;
?>