Or you could use eregi_replace to get rid of the nasty variable. An added advantage of this is that it doesn't matter where the variable is; you only have to know its name.
<?
$vars = $QUERY_STRING;
$newquery = eregi_replace ("&var2=$var2","",$vars);
?>
This works like a dream for me.