how can i regest the url that is in the address bar. so i can do this.
<? $addressbar = request the url that is in the addressbar. ?> <a href="<? echo "$addressbar"; ?>&order=price"
the reason is my address bar contain a very long search related querystring. here is some of it.
http://www.mywebsite.com/house.php?pricefrom=1&priceto=100000000&property=Any&bedfrom=1&bedto=100&suburbs%5B%5D=ANSTEAD&suburbs%5B%5D=BARDON&suburbs%5B%5D=BARELLAN+POINT&bath=100&nav=search&order=price&page=search&lug=100&landfrom=1&landto=9&select9=No&select10=No&select11=No&select12=No&select13=No&select14=No&select15=No&select16=No&select17=No&imageField.x=33&imageField.y=16
i want to grab this and add the "&order=price" to the end.
cheers aron.
$_SERVER['QUERY_STRING'] will give you everything in the query string and omit anything before the query string.
thanks