PDA

View Full Version : web browsers can't find page - but it is there!



bellfam1
02-06-2010, 01:37 AM
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:


<!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 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==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

bellfam1
02-08-2010, 01:07 PM
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.