How to get parameter after "/" in URL in PHP
- by Lucifer
I need to let my users type anything at the end of my url, like this:
http://mysite.com/?somethingorother
or
http://mysite.com/somethingorother
And then I would like to get that last bit that they added to the end of the url like so:
$var = $_POST[''];
But I'm not sure how to go about this, and I can't find anything, because I'm not quite sure how to search for it.
Any help is appreciated, thanks!