Well, the form tag is missing the action and method elements. Try:
<form action="<?php echo $PHP_SELF; ?>" method="POST">
The form is missing a closing tag, </form> which is absolutely necessary.
It looks to me like you've got the name / value pairs backwards throughout your form. Instead of:
<input type="text" name="<?php echo name; ?>" value="someguy@hotmail.com">
It should be:
<input type="text" name="name" value="<?php echo $name; ?>">
While an even better method would use:
<input type="text" name="name" value="<?php echo $HTTP_POST_VARS['name']; ?>">
Since that makes no assumptions about the register globals setting on the server.
Make the appropriate changes for all form elements which have this boo-boo...
The if() statement is trying to set the value, since it only has a single '=' sign. A single '=' sets a value while '==' tests equality.
Apply the same technique to the if() statement that you put in the form elements:
if($HTTP_POST_VARS["title"] == "title") {
echo "remeber you can not email the title as \"title\".";
} else {
mail($HTTP_POST_VARS['name'], $HTTP_POST_VARS['title'], $HTTP_POST_VARS['message'])
}
Basically, once you get the <form> tag straightened out, account for PHP's register_globals setting to be in the 'off' position (this is fer security reasons), correct the form name / value pairs, close the <form> tag and correct the if() condition, it should work like a champ.
Have fun...