hi guys
i have made a simple html form for collecting information:-
<div class="main">
<fieldset>
<legend>
We welcome your comments...
</legend>
<form name="mail" action="script.php" method="post">
Your Name:<br>
<input type="text" name="name" value="Your name..." size="20"><br>
<br>
Your Email Address:<br>
<input type="text" name="email" value="Email address..." size="28"><br>
<br>
Comment:<br>
<textarea rows="10" cols="25" name="comment"> </textarea><br>
<br>
<br>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
<div style="position: absolute; right:35px; top: 40px;">
<img src="jedi.jpg"></div>
</fieldset>
</div>
and the i have a script.php with the contents:-
<?php
$to="butterworth_jon@hotmail.com";
$from="From: $email";
if ($comment != " ")
{
mail ($to, $comment, $from);
header ("location:$HTTP_REFERER");
}
else
{
print("<HTML><BODY>ERROR, Type something in the comment box!");
print("</BODY></HTML>");
}
?>
Only problem is, it doesent work!!
It doesent come up with any error messages, it juse doesent send the email 🙁
Any ideas guys?
Thanks
Jon