This is really more of a PHP question than a linux question, however...
Variables in PHP depend on the way in which it was submitted (GET, POST or PUT). If you are passing some variables via your URL, it is a GET request.
In recent versions of PHP, these values are available in the global $_GET array variable. In older versions (pre-3.x), you use $HTTP_GET_VARS.
For example, using the following URL:
http://mysite.com/my_page.php?type=1&page=2
You would get to your variables 'type' and 'page' this way:
$_GET["type"] and $_GET["page"]
If it was submitted via a POST request, you'd get to your variables like this:
$_POST["type"] and $_POST["page"]
Using your URL, $_GET["type"] would equal '1' and $_GET["page"] would equal '2'.
Check this page for more info:
http://us2.php.net/reserved.variables
Also, you may want to check PHP Builder (
www.phpbuilder.com/board/), as it is specific to PHP related questions.
Hope that helps.