javascript variable into php
<p>I have a php function, in this function I have a javascript which get the value of my element from parent window. My problem now is, how can I pass this value into php variables</p>

<p>Any help would greatly appreciated.</p>

<p>Thanks</p>

<p>Tirso</p>

<p>I tried this code but I got value always 1</p>

<p>here is my code</p>

<pre><code>function do_upload()
{ 
 $categories = print '&lt;script type="text/javascript"&gt;window.top.window.$("#categories").val();&lt;/script&gt;';
}
</code></pre>

<p>the value I've got for $categories is always 1;</p>
