I'm trying to echo a link to my site's user, but the trick is that I want to append the session id onto the url in the link. This is what I have so far:
echo "<a href=url.php<?=SID?>>account</a>";
Since this line, along with others, is within php tags as well, I think the php engine is reading the ?> after SID as the end of the entire php script and things are stopping there.
I don't want to rely on php to automatically append the SID, I'd rather do it by hand. And I can't just do this in html, without echoing it, since I only want it to appear under certain conditions.
If someone could tell me the proper syntax to append the SID onto a link that's echoed to the user, I'd really appreciate it.