INDEX.PHP---------------------------------- <form action="hello.php" method="POST"> Your first name <input type="text" name="name"> Your favorite color <input type="text" name="color"> Your email address <input type="text" name="email"> <input type="submit" value="Send Info"> </form>
HELLO.PHP-------------------------------
<?php
$senderemail = $_POST['email'];
$sendername = $_POST['name'];
$sendercolor = $_POST['color'];
$recipient = "[EMAIL PROTECTED]";
$subject = "Your subject line goes here";
$mailheader = "From: $senderemail\n";
$mailheader .= "Reply-To: $senderemail\n\n";
$message = "Sender's name: $sendername\n";
$message .= "Sender's favorite color: $sendercolor\n\n";
mail($recipient, $subject, $message, $mailheader) or die ("Failure");
?>_________________________________________________________________
Watch LIVE baseball games on your computer with MLB.TV, included with MSN Premium! http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/direct/01/
