Forum Moderators: coopster

Message Too Old, No Replies

Create a link for different users

         

tommorrison

12:17 pm on Aug 13, 2008 (gmt 0)

10+ Year Member



Hi all
i wish to make a link at the top of one of my pages that will differ due to the username. e.g if the user logged in is 'user33' then the page that the link sends the user to is 'user33.php', or something like that.

can anyone help?

coopster

4:15 pm on Aug 13, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, tommorrison.

You just use the variable to create the link. Something like this:

$username = 'user33'; 
$link = $username . '.php';