So I think why not directly use a "Content Editor" webpart? Because a content editor webpart allows you to embed javascript code in it. We can use an "iframe" which url is generated by javascript with url parameters from the webpart page.
Then I create a webpart page, insert in a content editor webpart, and then insert the following code in it:
<script type="text/javascript">
function getQueryStringRegExp(name)
{
var reg = new RegExp("(^|\\?|&)"+ name +"=([^&]*)(\\s|&|$)", "i");
if (reg.test(location.href)) return unescape(RegExp.$2.replace(/\+/g, " "));
return "";
}
document.write("<iframe src='http://www.yourdomain.com/index.php?test="
+ getQueryStringRegExp('test') + "' width=100% height=100%></iframe>");
</script>
The function getQueryStringRegExp is for retrieve parameter value from url, which is get from here:
http://www.codebit.cn/pub/html/javascript/tip/javascript_get_url_parameter/