I midfied the first php script up there and I made it to
CODE
<?php
$thiername = $_POST["thiername"];
$thieremail = $_POST["thieremail"];
$body = $_POST["body"];
$email_to = "ryan@****uin.com";
$email_subject = "A message from ***.com users";
$email_body = "$thiername <br/> $thieremail <br/> $body";
if(mail($email_to, $email_subject, $email_body))
{
echo "The information was successfully sent.";
}
else
{
echo "The information was NOT sent.";
}
?>
Then I hooked it up to an index.html page here
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"xml:lang="en-US">
<head>
<title></title>
</head>
<body>
<form method="post" action="action.php">
<input type="text" name="thiername" value="Your name" /> <br/>
<input type="text" name="thieremail" value="Your email" /> <br/>
<textarea name="body" cols="30" rows="10">Your message</textarea /> <br/>
<input type="submit" value="Send">
</form>
</body>
</html>
It worked exellent for me. Thank you for the script and any help.
This post has been edited by RyanRyan: 11 Mar, 2007 - 01:19 AM