redirect in n seconds and pass values
<p>i have page A and B. Once the page A loads i will be keep on getting input from user. after 60 seconds the page will automatically redirect to Page B. I did with below code.. but values are not getting passed. </p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;script type="text/javascript"&gt;
function printVal()
{
printVal.counter--;
document.getElementById("timer").innerHTML=printVal.counter;
if(printVal.counter==0)
window.location="next.php";
}

function callfun()
{
setInterval(
function()
{
 printVal()
}
,1000);
}


printVal.counter=61;

&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;input type="submit" value="Click Me" onclick="callfun()"&gt;
&lt;p id="timer"&gt;&lt;/p&gt;

&lt;form method='post' action='next.php'&gt;
&lt;input type='text' name='val'&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>i ve to create a list . once user types something in text box and press enter it should go and add in a list box. and after 60 seconds i want the values in the list box to be passed to next.php . how could i do that.</p>
