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
<script type="text/javascript">
function s()
{
var ans = prompt("Name your query?","");
}
</script>
<input type="image" src="images/savn.jpg" onclick="s();" />
<form method=post" action="y.php">
below here it has some text boxes so,i need this values also to be posted to y.php
I am struck.Can,any one take me further to next step?