$params=""; foreach($_REQUEST as $name=>$value) { //we propagate all parameters to the search results except the controller page if ($name!="result") { $params=$params.$name."=".$value."&"; } } ?> This is a result page