yeah i do exactly the same thing on my site
the code i use is as follows
<?PHP
$return = $_SERVER['PHP_SELF'];
if($_SERVER['QUERY_STRING'] != ""){
$return .= echo "?";
$return .= echo $_SERVER['QUERY_STRING'];
}
?>
this creates a var called $return, which is the current page. If any environment vars (page.php?var1=a&var2=b) have been posted, these will be added to $return
then to get back, just call
header("Location: $return");
nb browsers are very fussy about this header - all spaces etc must be as above!
adam