400)
{
$message = "Please limit your comments to under 400 characters, otherwise it starts to look like spam";
}
else if (strlen($returnFromTextComments) > 0)
{
$message = $returnFromTextComments;
}
else
{
$body = "
A message from a guest has been sent to you
";
$body .= "Name: $name
";
$body .= "Email: $email
";
$body .= "Website: $url
";
$body .= "Comments: $comments
";
$to = 'isaiah68la@sbcglobal.net';
// subject
$subject = 'A message from a lighthouseedit.com guest has been sent to you';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'From: lighthouseedit.com ' . "\r\n";
// Mail it
mail($to, $subject, $body, $headers);
$message = "Thank you $name for singing our guest book. We never sell your information and only use it internally to see who might be interested in our services.
Blessings, Lon Ackelson";
$name = $email = $url = $comments = "";
}
}
function testComment($comment)
{
if (stristr($comment, 'http:') !== false || stristr($comment, 'www.') !== false)
{
$ret = explode("http:", strtolower($comment));
$ret2 = explode("www:", strtolower($comment));
if (count($ret) > 1 || count($ret2) > 1)
{
return "I'm sorry but your comments looks like spam, please limit the number of websites in your message to only one";
}
}
return "";
}
?>
Lighthouse Editing Contacts
|
Contact
Information / Guestbook
|
|