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:
It is saved as a .htm file.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>
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



Reply With Quote
Bookmarks