I'm using Keith Jquery Countdown 1.5.8 for doing the countdown and the ticking time is working perfectly for every user. i have 2 forms in a single php file (let's say multiform.php) but the form submits nothing when the countdown reaches zero.
Here is my jquery code :
<script type="text/javascript">
$(function () {
$('#defaultCountdown').countdown({until: <?php echo($usertime); ?>,
onExpiry: function() {
$('#quizform').submit();
}
});
});
</script>
and some of my multiform.php codes are :
<?php
if($choice==1) {
?>
...
<form action="submit.php" method="post" name="quizform" id="quizform">
...
...
<input type="submit" name="save_1" value="Save" />
</form>
<?php
} else {
?>
...
<form action="submit.php" method="post" name="quizform" id="quizform">
...
...
<input type="submit" name="save_2" value="Save" />
</form>
and submit.php consists of :
if(isset($_POST['save_1'])) {
...do part 1
}
else {
...do part 2
}
The form submits nothing, none of those text input values submitted to "submit.php". It returns blank. Am i doing wrong ?