Hi All
I am a newbie at PHP and am trying to put together a script that will email some form data.
Below is what I have but I am getting a compiler error on line 2, unexpected T_STRING
if someone could help out it would be great!!!
Oh, is there also a way that I could redirect the user to another page once the email is sent?
Thanks!!
I am a newbie at PHP and am trying to put together a script that will email some form data.
Below is what I have but I am getting a compiler error on line 2, unexpected T_STRING
if someone could help out it would be great!!!
Oh, is there also a way that I could redirect the user to another page once the email is sent?
Thanks!!
Code:
<?php
$todayis = date("l, F j, Y, g:i a");
$notes = stripcslashes($notes);
$urlis = $urlis;
$visitor = $visitor;
$visitormail = $visitormail;
$friend = $friend;
$friendmail = $friendmail;
$redirectlink = $redirectlink;
$subject = "Link From A Friend";
$message = " $todayis [EST] \n
From: $visitor ($visitormail)\n
To: $friendmail \n
Link: $redirectlink \n
Comments: $notes \n ";
$from = "From: $visitormail\r\n";
mail($friendmail, $subject, $message, $from);
?>