Jump to content

Parse error ..problem


ColdDayInHell

Recommended Posts

hi ..i'm kinda noob to PHP i dont know wut's really wrong with this code but i keep getting this parse error

 

 

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in line 13

 

Parse error: parse error in line 13

 

 

and this is line 17:

$headers .= "From: \"".$fromname."\" <".$fromaddress.">\n";

 

and that' the whole code down there

 

I really will appreciate ur Help>>>>

 

 

<?PHP

$remote_addr = getenv(’REMOTE_ADDR’);

$toaddress = "[email protected]";

$subject = "IP tracket";

$message = "IP: $remote_addr";

$fromname = "profit42.com";

$fromaddress = "[email protected]";

$headers = "MIME-Version: 1.0\n";

$headers .= "Content-type: text/plain; charset=iso-8859-1\n";

$headers .= "X-Priority: 3\n";

$headers .= "X-MSMail-Priority: Normal\n";

$headers .= "X-Mailer: php\n”;

$headers .= "From: \"".$fromname."\" <".$fromaddress.">\n";

mail($toaddress, $subject, $message, $headers);

?>

<img src"http://www.blabla.com/any.JPG">

Link to comment
https://forums.phpfreaks.com/topic/46452-parse-error-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.