you can use JavaScript (or jquery lib) to countdown and disable submit button
function startTimer(duration, display) {
var timer = duration, minutes, seconds;
setInterval(function () {
minutes = parseInt(timer / 60, 10)
seconds = parseInt(timer % 60, 10);
minutes = minutes < 10 ? "0" + minutes : minutes;
seconds = seconds < 10 ? "0" + seconds : seconds;
display.textContent = minutes + ":" + seconds;
if (--timer < 0) {
timer = duration;
}
}, 1000);
}
window.onload = function () {
var fiveMinutes = 60 * 5,
display = document.querySelector('#time');
startTimer(fiveMinutes, display);
};
<body>
<div>Registration closes in <span id="time">05:00</span> minutes!</div>
</body>
to disable submit button change startTimer
function like this:
if (--timer < 0) {
timer = duration;
}else{
// get button id and disable it or redirect page
}
to pass timer to second page you can add hidden input to your form and update it in function every time:
if (--timer < 0) {
timer = duration;
// here get hidden input id and update value
}else{
// get button id and disable it or redirect page
}
countdown function from here: The simplest possible JavaScript countdown timer?