Hi, I am trying to put a tell a friend script on pages of my site using Taming the Beast script:
http://www.tamingthebeast.net/articles5/tell-a-friend-script-2.htm
i have uploaded it to my page as instructed:
http://www.cameroncaine.co.uk/workouts/1.html
but when i try and send the form it gives me this:
Parse error: syntax error, unexpected T_STRING in C:\Domains\cameroncaine.co.uk\wwwroot\workouts\tellafriend.php on line 17
Can anyone help me?
here is the php script i have:
<?PHP
// This following statement must not be changed.
// Taming The Beast Tell-A-Friend script V 2.0*
// Taming the Beast.net - http://www.tamingthebeast.net
// Free Web Marketing and Ecommerce Resources and Tools
// By using this application you agree to indemnify*
// Taming the Beast from from any liability that might arise
// from it's use.*
// The preceding statement must not be changed.*
# This part strips out nasty code that a malicious
# person may try to inject into the form
strip_tags($fmail1);
strip_tags($fmail2);*
strip_tags($fmail3);*
strip_tags($email);
strip_tags($name);
# This part submits a notification to you when*
# the form is submitted
// Email address for copies to be sent to - change to suit
$emailto = "cam@cameroncaine.co.uk";*
// Notification email subject text for copies
$esubject = "Recommendation form submission";*
// Email body text for notifications
$emailtext = "
".$name." has used your recommendation form using an email address of ".$email."
The people the recommendation has been submitted to are:
".$fmail1."
".$fmail2."
".$fmail3."
The page recommended:
".$_POST['refurl']."
";
# This function sends the email to you
@mail("$emailto", $esubject, $emailtext, "From: $email");
# This part is the function for sending to recipients
// Page to display after successful submission
// Change the thankyou.htm to suit
$thankyoupage = "thankyou.html";*
// Subject line for the recommendation - change to suit
$tsubject = "A web page recommendation from ".$name."";
// Change the text below for the email*
// Be careful not to change anything ".$value."
$ttext = "
Hi,
".$name.", whose email address is ".$email." thought you may be interested in this web page.*
".$_POST['refurl']."
".$name." has used our Tell-a-Friend form to send you this note.
We look forward to your visit!
";
# This sends the note to the addresses submitted
@mail("$fmail1,$fmail2,$fmail3", $tsubject, $ttext, "FROM: $email");
# After submission, the thank you page
header("Location: $thankyoupage");
exit;
?>