Guest upirate Posted March 6, 2007 Share Posted March 6, 2007 hello, anyone know of a function that just returns the arguments from the current URL ? for example if somoone goes to my site mysite.com/index.php?x=1&t=7 I need the x=1&t=7 bit. thanks Link to comment https://forums.phpfreaks.com/topic/41491-solved-php-function-that-returns-current-url-arguments/ Share on other sites More sharing options...
boo_lolly Posted March 6, 2007 Share Posted March 6, 2007 you use the $_GET method: echo "x = ". $_GET['x'] ."<br />\n"; echo "t = ". $_GET['t'] ."<br />\n"; Link to comment https://forums.phpfreaks.com/topic/41491-solved-php-function-that-returns-current-url-arguments/#findComment-201019 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.