Thanks, I'll try it out on a server that can mail.
Here is the code you requested for the form and for the php that goes with it....
Form code...
<html>
<head>
</head>
<body>
<form name="formName" action="email.php">
Name: <input type="text" name="txtName" size="10"><br><br>
Phone: <input type="text" name="txtPhone" size="10"><br><br>
Message: <input type="text" name="txtMessage" size="10"><br><br>
<input type="submit" name="send form" value="Submit">
</form>
</body>
</html>
php code from "email.php"....
<?php
if ((!txtName)) {
echo "Please enter your name";
echo "<p>";
echo "Please press the back button to continue";
echo "</p>";
echo "<a href='contact.htm' onclick='self.history.back();'>Back</a>";
exit;
}
$message = "
<html>
<head>
<title>Inquiry</title>
</head>
<body>
$txtName
<br>
$txtPhone
<br>
$txtMessage
</body>
</html>
";
mail($email, $subject, $message, "From: $from_email\nX-Mailer: PHP/");
?>
See any problems there? I'm assuming that "$email" is where the form information would be submitted to, but I'm not completely sure.
Thanks,
Brian