get query string in popup window
<pre><code>&lt;a href="tags.php" onclick="return popitup('tags.php')"&gt;tags&lt;/a&gt;
</code></pre>

<p>I have this line of code that runs the javascript to open new mini popup window,and it mostly works.</p>

<p>Now how could i add current query string attributes so that my popup window has url something like this "tags.php?variable1&amp;variable2"</p>

<p>In few similar places I used this along with some other code to get the query attributes,the problem is that in this case page refreshes and contacts the sql without running javascript or opening window,when i try to make my code PHP using echo the quotation makrs f* everything up.                       </p>

<pre><code>".$_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']."
</code></pre>
