Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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 .....

  • #2
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i always use a bit of javascript for it, but that's just a personal preference.

    Code:
    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>
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •