1) Script Title: Encrypted Password
2) Script URL (on DD): http://dynamicdrive.com/dynamicindex...lscrambler.htm
3) Describe problem: When i login its not taking me to the right page just at the bottom it says done but with errors
1) Script Title: Encrypted Password
2) Script URL (on DD): http://dynamicdrive.com/dynamicindex...lscrambler.htm
3) Describe problem: When i login its not taking me to the right page just at the bottom it says done but with errors
Please link to your page so we can see what's going on.
Feel free to change the password for this example so you don't need to give us the real one.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
I am using this code i cant link to the page because its on my computer:HTML Code:<script> //Encrypted Password script- By Rob Heslop //Script featured on Dynamic Drive //Visit http://www.dynamicdrive.com 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==134603040&&passcode==126906300) //CHANGE THE NUMBERS ABOVE TO REFLECT YOUR USERNAME/PASSWORD { window.location=password+".htm"} else{ alert("password/username combination wrong")} } </script> <form name="password1"> <strong>Enter username: </strong> <input type="text" name="username2" size="15"> <br> <strong>Enter password: </strong> <input type="password" name="password2" size="15"> <input type="button" value="Submit" onClick="submitentry()"> </form>
That might be part of it. Some browsers disable javascript when on a local computer. You need the 'mark of the web' (which is easiest to get by just putting it on the web).
Hmm.... seems like it should work from the code. But note that your password is right there. Heh. Easy to hack, anyway.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
I revamped this script quite a while ago.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks