pass data from js to php on the change of dropdown box
<p>THE HTML IS FOLLOWING:</p>

<pre><code>&lt;form name="dataform"&gt;
&lt;select name ="sel" onchange="go(dataform);"&gt;
&lt;option value=1&gt;1&lt;/option&gt;
&lt;option value=2&gt;2&lt;/option&gt;
&lt;option value=3&gt;3&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>AND JS IS HERE:</p>

<pre><code>&lt;script type="text/javascript"&gt;
function go(frm)
{
    if(frm.sel.value==1)
{
window.location="my.php?a="+frm;
}
}
&lt;/script&gt;
</code></pre>

<p>AND THE PHP CODE IS HERE:</p>

<pre><code>&lt;?php
if(isset($_GET['a']))
{
    echo $_GET['a'];
}
?&gt;
</code></pre>

<hr>

<p>THE PROBLEM IS THAT, WHEN I ECHO $_GET['a'], IT GIVES HTMLFormELEMENT.
I WANT TO FORWARD THE PREVIOUS FORMDATA TO ANOTHER FORM. HOW COULD I GET THE PREVIOUS FORM ELEMENT.AND HOW TO FORWARD TO NEXT FORM WITHOUT POSTING A FORM......</p>
