You can access the current query string through $SERVER['QUERY_STRING']. However, since you will be changing one of the name/value pairs, you may need to do a little more. One approach is to modify say, $GET['page'], then use [man]http_build_query/man with $_GET and then append the resulting string as the query string of all the relevant links on the page.