I don't see the problem with this: echo "<a href= 'buy.php?" . "&id=". urlencode(2). "'>". Buy Item. "</a>"; or echo "<a href= 'buy.php?" . "&id=2". "'>". Buy Item. "</a>"; Both give the error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/mountgam/public_html/zombie/index.php on line 14 Can someone help please? Thanks, James