I suppose it could be done in PHP. First, get the query string into a variable ($SERVER['QUERY_STRING'] would seem a wise choice). This can then be echoed into the iframe's src:
<iframe src="file.php?<?php echo $_SERVER['QUERY_STRING']; ?>">
Then, in file.php (inside the iframe), you can reference the variables via $_GET[].