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. Link to comment https://forums.phpfreaks.com/topic/159339-solved-pm-system-compose-help/ Share on other sites More sharing options...
trq Posted May 23, 2009 Share Posted May 23, 2009 $_GET['user']. Link to comment https://forums.phpfreaks.com/topic/159339-solved-pm-system-compose-help/#findComment-840409 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 Link to comment https://forums.phpfreaks.com/topic/159339-solved-pm-system-compose-help/#findComment-840411 Share on other sites More sharing options...
Ken2k7 Posted May 23, 2009 Share Posted May 23, 2009 filter_input(INPUT_GET, 'user'); Link to comment https://forums.phpfreaks.com/topic/159339-solved-pm-system-compose-help/#findComment-840412 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? Link to comment https://forums.phpfreaks.com/topic/159339-solved-pm-system-compose-help/#findComment-840417 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. Link to comment https://forums.phpfreaks.com/topic/159339-solved-pm-system-compose-help/#findComment-840439 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.