training for accelerated learning in the UK - speed reading, creativity, mind mapping, stress management, emotional intelligence, time management, information overload, team development workshops |
Refer to a Friendhome > refer to a friend
<%
// ******************************************
// * PAGE BODY - Paste this section of code *
// * in the body section of your template. *
// ******************************************
if ($frmurl == "") {
$frmurl = $siteurl;
}
if ($action=="sendit") {
// form has been filled in, so send those mails
// send an e-mail to the referee first
if ($allowrefereebody) {
$refereebody = $frmbody;
}
$refereebody = $refereebody . "\n\n" . $frmurl;
mail($frmrefereemail, $refereesubject, $refereebody, "From: " . $frmreferername . "\nX-Mailer: PHP 4.X");
// send an e-mail to the referer next
if ($sendreferer) {
mail($frmreferermail, $referersubject, $refererbody, "From: " . $adminmail . "\nX-Mailer: PHP 4.X");
}
// send an e-mail to the admin finally
if ($sendadmin) {
$adminbody = $frmreferername . " (" . $frmreferermail . ") sent '" . $frmurl . "' to " . $frmrefereename . " (" . $frmrefereemail . ").";
mail($adminmail, "ReferIt - Activity Report", $adminbody, "From: " . $adminmail . "\nX-Mailer: PHP 4.X");
}
%>
Thank you, we have sent an e-mail to your friend/colleague with
a link to this web page.
<%
} else {
// show the form
%>
|





