Kryptix Posted February 24, 2012 Share Posted February 24, 2012 As title really... viewthead.php?385784 How does the ID relate? How do you use it? Can you give me a code snippet please? Link to comment https://forums.phpfreaks.com/topic/257665-how-do-you-do-vphp385473/ Share on other sites More sharing options...
Pikachu2000 Posted February 24, 2012 Share Posted February 24, 2012 It's a $_GET variable. It's one of the superglobal arrays, similar to $_POST. If you're referring to the lack of an identifying parameter, such as id=, that is usually handled with mod_rewrite. Link to comment https://forums.phpfreaks.com/topic/257665-how-do-you-do-vphp385473/#findComment-1320656 Share on other sites More sharing options...
Kryptix Posted February 24, 2012 Author Share Posted February 24, 2012 It's a $_GET variable. It's one of the superglobal arrays, similar to $_POST. If you're referring to the lack of an identifying parameter, such as id=, that is usually handled with mod_rewrite. Yeah it's the lack of parameter I'm talking about. Is using Apache's mod_rewrite the only way to do this? Is there no way to do it solely using PHP? What if you loop through all $_GET variables for example? Link to comment https://forums.phpfreaks.com/topic/257665-how-do-you-do-vphp385473/#findComment-1320659 Share on other sites More sharing options...
kicken Posted February 24, 2012 Share Posted February 24, 2012 You can use $_SERVER['QUERY_STRING'] to access the raw query string which is just everything after the ?. Should be able to pull the number from there. Link to comment https://forums.phpfreaks.com/topic/257665-how-do-you-do-vphp385473/#findComment-1320660 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.