How to get parameter after "/" in URL in PHP
Posted
by
Lucifer
on Stack Overflow
See other posts from Stack Overflow
or by Lucifer
Published on 2010-12-30T17:49:04Z
Indexed on
2010/12/30
17:54 UTC
Read the original article
Hit count: 261
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!
© Stack Overflow or respective owner