I'm guessing here but what you are trying to get is a parameter from a string which isn't the current url (otherwise you'd use $_GET)
Lets say the string is
http://www.goodreturns.co.nz/section.php?CategoryID=200&field=1year&order=desc&date=20041015084740&printer=0
you could do this (I'll search for date, rather than gid)
<?php
$str = 'http://www.goodreturns.co.nz/section.php?CategoryID=200&field=1year&order=desc&date=20041015084740&printer=0';
$main = explode('?',$str);
if (isset($main[1]))
{
$bits = explode('&',$main[1]);
foreach($bits as $val)
{
if (substr($val,0,4) == 'date') echo substr($val, 5);
}
}
?>
hope this helps
Sarah