code:
<?php
$memail = "Your@email.com";
echo "<table><tr><td>";
if ($_POST['act'] == 'send') {
if (isset($_POST['name'])) {
if (isset($_POST['email'])) {
if (isset($_POST['body'])) {
$_POST['body'] = $_POST['body'] . "\n\n -- " . $_POST['name']
mail($memail,Contact Form,$_POST['body'],"From: " . $_POST['email'] . "\n" . "Return-Path: " . $_POST['email'] . "\n" . "Reply-To: " . $_POST['email'] . "\n");
echo "<pre style="color:\#FF0000;\">Your comments have been submitted.</pre>";
} } } }
echo "<form method=\"POST\" action \"" . $_SERVER['PHP_SELF'] . "\">"; ?></td></tr><tr><td>Name:</td><td><input type="text" name="name"/></td></tr><tr><td>Email</td><td><input type="text" name="email"/></td></tr><tr><td>Comments:</td><td><textarea name="body"></textarea></td></tr></table></form>
Not sure if it works, wrote it just now...