...

View Full Version : Resolved Detect a Variable In a Url



connormcwood
07-18-2012, 07:47 AM
Hey I don't really know how to explain this but I will try my best. As a user clicks on a link he/she will be directed to the link :

localhost/game/sendmessage.php?user=username
(Username varys from player to player.)
I wish to know how I can put this in the sendmessage.php script
and detect if the user has a value and use it. If you get me?

Len Whistler
07-18-2012, 08:02 AM
The code below goes in the sendmessage.php page

$username = $_GET['user'];

connormcwood
07-18-2012, 09:04 AM
The code below goes in the sendmessage.php page

$username = $_GET['user'];

Thank you. Omg, Im such an idiot.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum