Ugh... Long day Need a second pair of eyes...

2 replies
Hey all, its been a long day and it doesn't help that this sinus infection is kicking my butt... Any way, I went to test a script in which I worked on earlier and it is saying via parse error unexpected semi colon => ; and that its looking for a right parentheses. It says that the error is on line 7. The part of code that is in bold is my line 7. I have the opening <? on line one with an if statement for the processing of the form as line 2.

Posting code below. If someone can point out the idiotic mistake I have somehow overlooked it would be greatly appreciated...

Thanks

Jay

PHP Code:
$headers "From: "strip_tags($_POST['yourname']) . "<" strip_tags($_POST['youremail']) . ">\r\n";
$headers .= "Reply-To: "strip_tags($_POST['youremail']) . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";    
for(
$i 0$i<=5$i++){
$to $_POST['email[$i]'];
$subject=$_POST['friend[$i]']." Check out how I can make a...";
$msg "<HTML><BODY><H1 align=center>site in less than 3 minutes flat!</H1><p aligh=center>".$_POST['friend[$i]']."This is ".$_POST['yourname'].". I have just finished setting up my affiliate site in less than 3 minutes!<br />Check out this vid I found on youtube!</p><br /><p align=center><a href='http://www.youtube.com/watch?v=O9PWXn-Zi8o' target='_blank'>How I got my copy of this insane lead generating and cash pulling machine!</a></p><p align=center>Thanks for taking a few minutes to check out this video! Go grab it now!</p></BODY></HTML>";
$sendme mail($to,$subject,$msg,$headers);
echo 
$sendme "Your friends will be receiving a message from you shortly." "Sorry something went wrong when the email(s) went out. Please try again later.";

#day #long #pair #ugh
  • Profile picture of the author Manfred Ekblad
    I tested your code, not getting any parse errors.

    Perhaps your file was truncated during file upload, did u check that?
    {{ DiscussionBoard.errors[2067340].message }}
  • Profile picture of the author jaybaker
    I was over complicating things and just needed to get back to basics so to speak and yes the file some how was truncated... Thanks for your help.
    Signature

    Do you want to make successes or excuses? Success? Alright then... See what's in store for you....
    - The AC Assassin

    {{ DiscussionBoard.errors[2068883].message }}

Trending Topics