Pass address bar url of parent window to field in popup
<p>On my website, I have a button which when clicked displays a feedback form in a popup window.</p>

<p>I need to pass the url in the PARENT window to a hidden field in the feedback form.</p>

<p>I tried:</p>

<pre><code>&lt;?php $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; ?&gt;

&lt;input type="hidden" id="addressBar" name="addressBar" value= "&lt;?php echo $url ?&gt;"/&gt;
</code></pre>

<p>The problem with the above code is that it passes the url of the current window, in my case, the url of the feedback popup window.</p>

<p>How do I pass the url of the parent window to that hidden field?</p>

<p>Many thanks for your help</p>
