Quote:
Originally Posted by sabret00the
Code:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
parse error, i'm thinking it's because of the square brackets.
|
Just use single quotes and the concatenation operator:
PHP Code:
$message = 'Reporting Post: [url=viewthread.php?'.$session[sessionurl].'g='.$g.'&#post'.$p.']Post ID #'.$p.'[/url]\n\nReason: '.htmlspecialchars($reason);