Sorry, I don't know codes much.
I want to make a quiz exam were student will submit his/her answer between a limited time.
I tried to use setTimeout();
unfortunately didn't worked for me. The page was refreshing but I didn't get anything form echo $_POST['name'];
My form-
<form action="result.php" method="POST">
<input type="text" name="answer" >
<input type="submit" name="submit" >
</form>
If the student can't finish the answer between 10 Sec, the page will stop him to type anyting and will take him to result.php where he can see the answers he gave.
result.php
<?php
echo $_POST['answer'];
?>
Hope you will solve it for me.