hello world, a site im developing requires the ability to put a stored variable into an outgoing link when its clicked. this is for tracking the users that click the links. im new to php so have little idea how this is done, but i do know i will probably need to store a variable for the user who is logged into my site, and then send that variable to the link when its clicked.
so if my link is http://somesite.com/somelink$ref=#USERNAME#
and johndoe is logged into my account and clicks that link, the link turns into
ttp://somesite.com/somelink$ref=johndoe

