\" // Put it into Dreamweaver (WYSIWYG Editor), work on it and put it back. $theForm = <<
Your name:
Your email:
Enter the name(s) of your friend(s):
Enter the email(s) of your friend(s):

Your Message (optional):

$privacyPolicyLinkText
free php scripts

EOD; echo ($theForm); } ?> Your message was successfully sent to \' . $mailto . \'

\'); if ($notice == 1) { $message = \"From email \" . $headers . \"\\n\\n\" . \"To email \" . \"\\n\\n\" . $mailto . \"\\n\\n\" . $message; @mail($adminEmail, \"Referal notice\", $message); } } else { // This echo\'s the error message if the email did not send. // You could change the text in between the

tags. echo(\'

Mail could not be sent to \' . $mailto . \' Please use your back button to try them again.

\'); } } ?> \'; } else { $headers = \'From: \' . $websiteName . \'<\' . $adminEmail . \'>\'; } if ($_POST[\'friend_email1\'] != \"\") { $mailto1 = $_POST[\'friend_email1\']; //This tacs the name onto the subject line $subject1 = $_POST[\'friend_name1\'] . $subject; //This tacs the name onto the message $message1 = $_POST[\'friend_name1\'] . \"\\r\\n\" . $_POST[\'message\']; myMailFunction($mailto1, $subject1, $message1, $headers, $defaultMessageClose, $adminEmail, $notice); } if ($_POST[\'friend_email2\'] != \"\") { $mailto2 = $_POST[\'friend_email2\']; //This tacs the name onto the subject line $subject2 = $_POST[\'friend_name2\'] . $subject; //This tacs the name onto the message $message2 = $_POST[\'friend_name2\'] . \"\\r\\n\" . $_POST[\'message\']; myMailFunction($mailto2, $subject2, $message2, $headers, $defaultMessageClose, $adminEmail, $notice); } if ($_POST[\'friend_email3\'] != \"\") { $mailto3 = $_POST[\'friend_email3\']; //This tacs the name onto the subject line $subject3 = $_POST[\'friend_name3\'] . $subject; //This tacs the name onto the message $message3 = $_POST[\'friend_name3\'] . \"\\r\\n\" . $_POST[\'message\']; myMailFunction($mailto3, $subject3, $message3, $headers, $defaultMessageClose, $adminEmail, $notice); } $return = <<Return to the page you left.

EOD; echo ($return); } ?>