Thanks heaps, but for some reason it does not show the message I type in.
EDIT: I found a working contact script & edited it, yay!
Got any ideas to make the code below more secure?
------------------------------------------------------------------------------------------------------
<?php
if(isset($_POST['submit'])) {
$to = "msgcrap@live.com";
$subject = "Messenger Crap - Contact Us";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$message = $_POST['message'];
$body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message\n";
echo "Data has been submitted to $to!";
mail($to, $subject, $body);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Messenger Crap - Contact Us</title>
</head>
<body>
<form action=" " method="POST">
Name: <br />
<input type="text" name="name" size="35" />
<p>
</p>
<p>
</p>
Email
br />
<input type="text" name="email" size="35" />
<p>
</p>
<p>
</p>
Message:
<br />
<textarea name="message" rows="4" cols="40"></textarea>
<br />
<p>
<input type="submit" value="Submit" name="submit" style='width:100px;' />
<input type="reset" value="Clear" style='width:100px;' />
</form>
</body>
</html>