stelthius Posted May 23, 2009 Share Posted May 23, 2009 Ok guys i have a pm system and when i click on a users profile you'll see Send message to "User" then it goes to messages.php?option=compose&user="user" now my question is, is there anyway to extract the username from the address bar so that i dont have to type in the users name manually in order to send the pm, Any help is appretiated guys. Quote Link to comment Share on other sites More sharing options...
trq Posted May 23, 2009 Share Posted May 23, 2009 $_GET['user']. Quote Link to comment Share on other sites More sharing options...
stelthius Posted May 23, 2009 Author Share Posted May 23, 2009 Head > Wall > Thanks thorpe i forgot abnout that one haha Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 23, 2009 Share Posted May 23, 2009 filter_input(INPUT_GET, 'user'); Quote Link to comment Share on other sites More sharing options...
jackpf Posted May 23, 2009 Share Posted May 23, 2009 filter_input(INPUT_GET, 'user'); Just wondering...what's the point in that? Quote Link to comment Share on other sites More sharing options...
trq Posted May 23, 2009 Share Posted May 23, 2009 filter_input(INPUT_GET, 'user'); Just wondering...what's the point in that? It doesn't do anything but retrieve a variable from the $_GET array. Of course, input_filter also takes optional filter arguments to sanatize the data. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.