Adding user id to end of a link

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pacificwalter
Forum Newbie
Posts: 1
Joined: Fri Feb 13, 2009 12:19 pm

Adding user id to end of a link

Post by pacificwalter »

I am trying to figure out how to make external links include a user id at the end.

In other words...
When user # 99 visits, instead of him/her seeing: http://www.cj.com , I want them to see http://www.cj.com/?user99

I've tried to just put print $user->id; and {print $user->id;} and other variations at the end of the url, but it comes back with errors.

If someone could point me toward a relevant tutorial I'd be thankful.
Post Reply