Login script troubles (CGI / JAVA SCRIPT RELATED!)

Discussion in 'JavaScript' started by souki, Dec 27, 2007.

  1. #1
    Hey everyone,

    if you guys could help me with this, i would appreciate it VERY VERY much!


    www.aradsenki.com/index1.php

    if you login here with the following details username "test" password "test" , it will log you into the script, so we know when the person logs in, this works perfectly fine, but i want the page where you get directed to , to direct you INSTANTLY , back to our homepage, which is www.aradsenki.com , if you could help i will appreciated it very very much, please bare in mind, i need it to get to that page, to verify the login, but then the redirection should take you back to the homepage instantly.


    Thanks again!!!


    ive attached the file that needs to be edited, it needs some javascript re-direct code added, with a timer, which i will also add :


    <html>
    <head>
    <script type="text/javascript">
    <!--
    function delayer(){
    window.location = "../javascriptredirect.php"
    }
    //-->
    </script>
    </head>
    <body onLoad="setTimeout('delayer()', 5000)">
    <h2 >Prepare to be redirected!</h2>
    <p>This page is a time delay redirect, please update your bookmarks to our new
    location!</p>

    </body>
    </html>

    please edit it so it re-directs to www.aradsenki.com

    the time must be no shorter then 5-8 seconds ,because it needs to verify the page!



    if you could post back, with the edited file, with the re-direct working, then i will be willing to pay a small bit of money, to say thank you!
     

    Attached Files:

    • pm.zip
      File size:
      3 KB
      Views:
      108
    souki, Dec 27, 2007 IP
  2. Mike H.

    Mike H. Peon

    Messages:
    219
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use meta-refresh instead of JavaScript. Change test.html to the required URL.
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Any Title</title>
    <meta http-equiv="refresh" content="5; url=test.html">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <style type="text/css">
    
    	 body {background-color:#f6eabc; margin-top: 60px;}
    	.message {width:750px; margin-left: auto; margin-right: auto; color: #0000ff; text-align: center;}
    
    </style>
    </head>
    	<body>
    		<div class="message">
    			<h2> You will be automatically re-directed to our new home page in 5 seconds </h2>
    		</div>
    		<div class="message">
    			<h3> Be sure to update your bookmarks</h3>
    		</div>
    	</body>
    </html>
    
    Code (markup):
     
    Mike H., Dec 28, 2007 IP
  3. souki

    souki Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hey,the problem is , im a total newbie in this stuff, could you implement it into the CGI file i posted, and upload it back, so i can put it onto my ftp? would be very very much appreciated!
     
    souki, Dec 28, 2007 IP