Passing java script value to another page
<p>I have a page here prompt get an input and stores in a variable called ans,i need to pass this value to y.php</p>

<pre><code>&lt;script type="text/javascript"&gt;
function s()
{
var ans = prompt("Name your query?","");
}
&lt;/script&gt;
&lt;input type="image" src="images/savn.jpg" onclick="s();" /&gt;
&lt;form method=post" action="y.php"&gt;
</code></pre>

<p>below here it has some text boxes so,i need this values also to be posted to y.php</p>

<p>I am struck.Can,any one take me further to next step?</p>
