View Full Version : Notice after submitting
How do i make a "waiting notice" after my visitor have just submit something ? Just like the forum always do when we logging in or posting .....
i always use a bit of javascript for it, but that's just a personal preference.
if ($result):
?>
<form name="redirect">
<center>
<b>Congratulation. You are now registered and can start building your free webtest.</b><br/><br/><br/>
You will be redirected to the loginpage of the build-module in <br/><br/>
<input type="text" size="3" name="redirect2">
</form>
seconds
<br/><br/><br/>If you are not redirected or don't want to wait, click <a href="whatever.html" title="To the logon-form of the build-module">here </a>.
</center>
<script>
<!--
var targetURL="whatever.html"
var countdownfrom=5
var currentsecond=document.redirect.redirect2.value=countdownfrom+1
function countredirect(){
if (currentsecond!=1){
currentsecond-=1
document.redirect.redirect2.value=currentsecond
}
else{
window.location=targetURL
return
}
setTimeout("countredirect()",1000)
}
countredirect()
//-->
</script>
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.