this is what i use u can fix it a little
instead of going to a new page it does it all on the same one
CODE
<?
if(sizeof($_POST)) {
$body = $_REQUEST['Messafe'];
$subject =$_REQUEST ['Subject'];
while(list($key, $val) = each($HTTP_POST_VARS)) {
$body .= "$key: $val \n";
}
mail("example@example.com", //were the message will be sent
"$subject", // obviously the subject
$body); // and the message
echo "Thank You.";
}
?>
<form method=post action=<? echo $PHP_SELF; ?>>
Subject:
<input type="text" name="Subject" ><br>
Message
<input type="text" name="Message">
<input type="submit">
</form>
might have messed up on something correct me if im wrong
what i do is use the subject area for the person to put their email address in
This post has been edited by andrewvw: 18 Mar, 2008 - 05:45 PM