PHP Varible in an HTML link?

Micro Sniff

New member
I have a php page, that has a bit of html code that goes like this.

<a href="member.php?username="<? echo $_SESSION['username']; ?>" class="login"><? echo $_SESSION['username']; ?></a>

The varible will display the text, but when I go to the link, it just displays the addredd bar as

member.php?username=

How can I make it so it displays that variable which is the users username in the adderess bar as a link?
 
Back
Top