[!--quoteo(post=349466:date=Feb 25 2006, 11:27 PM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ Feb 25 2006, 11:27 PM)
Can you post the code you are currently using, exactly as it is? Can you tell us exactly what does happen, i.e. define "doesn't work" for us?
I assume that the script is saved as somename.php
and that it is running on a server equipped with a mail server, not running on your computer?
<form action="submit.php" method="POST">
<input type="text" name="email_address" /><br>
<input type="text" name="subject" /><br>
<input type="text" name="message" /><br><br>
<input type="submit" value="Submit" />
$email_address = $_POST['email_address'];
$subject = "Subject Here";
$message = "Message Here";
mail($email_address, $subject, $message, "From: Your Name<......@hotmail.com>\nX-Mailer: PHP/" . phpversion());
What it does, when you click submit, it sends you to "submit.php" and loads nothing but my layout. I dont get any error messages, my host has disabled it.