this is what i have
$addressbar = $_SERVER['QUERY_STRING'];
$string = "id" || $string = "price" || $string = "suburb";
$string = ereg_replace('test', $addressbar, $string);
what i want to do is grab the querystring
and search to see what is wriiten in the order= it could be "id" or "price" or "suburb" then i want to replace it with "test" for now.
later i will echo the result onto a button so if you click the view by suburb button it will replace it to be suburb and aslo same for price.
so
$addressbar = $_SERVER['QUERY_STRING'];
$string = "id" || $string = "price" || $string = "suburb";
$suburb_button= ereg_replace('suburb', $addressbar, $string);
$price_button= ereg_replace('price', $addressbar, $string);
cheers aron.