I'm trying to create a webpage where people well choose who they want to email to so i guess it's a online email client? the page the form is on is /email.php after u hit submit it goes to a problem page...i'd basically like the page to refresh and say your email has been sent..this is what i have so far
<html>
<head>
<title>House of Maveric</title>
</head>
<body>
<HR>
<body bgcolor ="#000000">
<body text ="#00CCFF">
<H1> Online Email Client</h1>
<form action = "email.php" method= "post">
Email:<input type = "text" name = "email" size ="30"><br>
Subject:<input type = "text" name = "subject"><br>
<textarea name="comments" cols=40 rows=20>
Your Email Message here
</textarea><br>
<INPUT type="submit" value="Send Now">
</form>
</HR>
<?php
$to = $_POST['email'];
$subject = $_POST['subject'];
$message = $_POST['message'];
mail($to, $subject, $message);
?>
</body>
</html>