You will need to learn PHP for that I THINK this is right (correct me if im wrong)
<?
function checkOK($field)
{
if (eregi("\r",$field) || eregi("\n",$field)){
die("Invalid Input!");
}
}
$name=$_POST['name'];
checkOK($name);
$email=$_POST['email'];
checkOK($email);
$comments=$_POST['comments'];
checkOK($comments);
$to="Youremailaddress@blahblah.com";
$message="$name just filled in your comments form. They said:\n$comments\n\nTheir e-mail address was: $email";
if(mail($to,"Comments From Your Site",$message,"From: $email\n")) {
echo "Thanks for your comments your email should be dealth with, within 24hours.";
} else {
echo "There was a problem sending the mail. Please check that you filled in the form correctly.";
}
?>
Thats the php then you need the html which is
<form action="mail.php" method="post">
Your Name: <input type="text" name="name"><br>
E-mail: <input type="text" name = "email"><br><br>
Comments<br>
<textarea name="comments"></textarea><br><br>
<input type="submit" value="Submit">
</form>
I am also learning php and mysql...
text box's are too easy so here is how to make on
put this code in
input type="text" size="45" name="full name" value="Your Full name here" onFocus="this.value=''"<br><br>
but with the < and > at the start and beginning
this will make a simple text boix like so
<input type="text" size="45" name="full name" value="Your Full name here" onFocus="this.value=''"><br><br>