Retrieving title from url
2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 16, 2012 (RSS)
By ikanizaj - March 16, 2012
What is the easiest way to retreive information from detail page URL.
I want to retreive
Basicly, that is the name of my record, and I would like to retreive it in that exact form?
I want to retreive
3.-kolo-Lednog-kupa-RH-2012.-186
out of this URL http://www.spk-strik.hr/indexDetail1.php?3.-kolo-Lednog-kupa-RH-2012.-186
Basicly, that is the name of my record, and I would like to retreive it in that exact form?
--
Igor Kani¾aj
Igor Kani¾aj
Re: [ikanizaj] Retrieving title from url
By (Deleted User) - March 16, 2012
Hi Igor,
To get the entire query (everything after the '?') you can just use
$_SERVER is a global that contains a whole load of useful information about the script being executed - check out http://php.net/manual/en/reserved.variables.server.php for more ways to use it.
Hope that helps,
Tom
To get the entire query (everything after the '?') you can just use
$queryFromUri = $_SERVER['QUERY_STRING'];
$_SERVER is a global that contains a whole load of useful information about the script being executed - check out http://php.net/manual/en/reserved.variables.server.php for more ways to use it.
Hope that helps,
Tom