Results 1 to 2 of 2

Thread: web browsers can't find page - but it is there!

  1. #1
    Join Date
    Feb 2010
    Location
    Melbourne, victoria, Australia
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default web browsers can't find page - but it is there!

    Hi there,

    I don't know if this is the right section of the forums.
    I am testing your Encrypted Password script. It works fine when testing within my web authoring program. The link from the menu where it comes from works in the authoring program and diirects to the page it is told to.
    However when it is uploaded to my web site hoster and directed to it from the menu of the index page, both IE (latest version) & Firefox (latest version) send out an Error 404 saying they can't find it. but it is there!

    The file is saved as follows:

    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <HTML>
    <HEAD>
       <TITLE>Untitled HTML Document</TITLE>
    </HEAD>
    <BODY BGCOLOR="tan">
    <script>
    //Encrypted Password script- By Rob Heslop
    //Script featured on Dynamic Drive
    //Visit [url]http://www.dynamicdrive.com[/url]
    
    function submitentry(){
    password = document.password1.password2.value.toLowerCase()
    username = document.password1.username2.value.toLowerCase()
    passcode = 1
    usercode = 1
    for(i = 0; i < password.length; i++) {
    passcode *= password.charCodeAt(i);
    }
    for(x = 0; x < username.length; x++) {
    usercode *= username.charCodeAt(x);
    }
    //CHANGE THE NUMBERS BELOW TO REFLECT YOUR USERNAME/PASSWORD
    if(usercode==16236794340&&passcode==21428025544926000)
    //CHANGE THE NUMBERS ABOVE TO REFLECT YOUR USERNAME/PASSWORD
    {
    window.location="Wall"+".htm"}
    else{
    alert("password/username combination wrong")}
    }
    </script>
    
    <form name="password1">
    <br><br><br><br><center><strong><font size="5">WALLINGTON Login Page</font size></strong></center>
    <br><br><center><strong>Enter username: </strong>
    <input type="text" name="username2" size="15"></center>
    <br>
    <center><strong>Enter password: </strong>
    <input type="password" name="password2" size="15">
    
    <input type="button" value="Submit" onClick="submitentry()">
    </form></center>
    </BODY>
    </HTML>
    It is saved as a .htm file.
    If you want to view my site or the files, please email me and i will give you the link or can forward the page files concerned. (It is in Beta testing at the moment).

    I hope I explained my problem OK.

    Thanks
    Last edited by Snookerman; 02-06-2010 at 01:05 PM. Reason: please use [html] [/html] tags for html code

  2. #2
    Join Date
    Feb 2010
    Location
    Melbourne, victoria, Australia
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi there,

    Sorry for not using the right procedure. I have been in touch with my web Hoster and sorted out the problem.

    Once again, sorry about the way the thread was presented.

Bookmarks

Posting Permissions

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