<a href="phpscript.php?some_id=value" target='new'>click here<a>
will put the query string on the _GET global so you can
$some_id = $_GET['some_id'];
you can generate the <a> tag so you can dynamically create the query string and what you want to pass to the new window ....
hope this helps,
ron