title: How to add 5 minute javascript countdown timer which submit a form
body: <p>I want to add 5 minute countdown timer which submit a form to my php page.</p>
  
  <pre><code>        &lt;form name="myfm" id="myfm" method="post" action="Quiz.php"&gt;
          &lt;table width=100%&gt; &lt;tr&gt; &lt;td width=30&gt;&lt;td&gt;&lt;/td&gt;&lt;/td&gt;&lt;/tr&gt; &lt;table border=0&gt;
          &lt;?php $n=$n+1; ?&gt;
          &lt;tr&gt;&lt;td&gt;Question  &lt;?php echo $n." "; echo $row[2]; ?&gt;&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td class=style8&gt;&lt;input type="radio" name="ques['&lt;?php echo $n; ?&gt;'][]" value=1&gt;&lt;?php echo $row[3]; ?&gt;&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td class=style8&gt; &lt;input type="radio" name="ques['&lt;?php echo $n; ?&gt;'][]" value=2&gt;&lt;?php echo $row[4];?&gt;&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td class=style8&gt;&lt;input type="radio" name="ques['&lt;?php echo $n; ?&gt;'][]"  value=3&gt;&lt;?php echo $row[5];?&gt;&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td class=style8&gt;&lt;input type="radio" name="ques['&lt;?php echo $n; ?&gt;'][]"  value=4&gt;&lt;?php echo $row[6];?&gt;&lt;/td&gt;&lt;/tr&gt;
  
      &lt;?php 
          }
          echo "&lt;tr&gt;&lt;td&gt;&lt;input type=submit name=submit id='result' value='Get Result'&gt;&lt;/form&gt;";
          ?&gt;
          &lt;/table&gt;&lt;/table&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>Please help me..I am doing a quiz page that automatically submit form when countdown ends.Thankyou...</p>