I am having a problem with my code. It works fine on my computer but as soon as I upload it to the server my Login wont work.
I know using JavaScript is the furthest from secure but that's okay, I am not worried about it I just need my code fixed. Please help!!
<html>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
.style13 {
color: #CC66CC;
font-weight: bold;
}
.style16 {font-size: 18px}
.style22 {font-size: 16px}
-->
</style><BODY>
<center>
<p><img src="ORIGINAL LOGO.JPG" alt="Crystal Boutique" width="300" height="100" longdesc="http://www.x.com"></p>
<p class="style10"><font size="5" face="Perpetua"> <span class="style13">Please Sign In!</span></font></p>
<p class="style10"> </p>
</center>
<script type="text/javascript">
function submitentry(){
loggedin=false;
username="";
password="";
username=prompt ("Username:","");
username=username.toLowerCase();
password=prompt ("Password:","");
password=password.toLowerCase();
-->Enter Username/Password Below <--
if (username=="ashley00" && password=="2838") {
loggedin=true;
window.location="http://216.105.55.115/html/cbreps.html";
}
if (username=="evi01" && password=="2594") {
loggedin=true;
window.location="http://216.105.55.115/html/cbreps.html";
}
if (username=="kristen02" && password=="6510") {
loggedin=true;
window.location="http://216.105.55.115/html/cbreps.html";
}
-->Enter Username/Password Above <--
if (loggedin==false){
alert("Sorry! Invalid Login Information!")
}
}
</SCRIPT>
<center>
<form>
<input type="button" value="Sign In!" onClick="submitentry()">
</form>
</center>
<p> </p>
<p align="center"> </p>
<p align="center" class="style16"><span class="style9 style22"><font face="Perpetua">If you are having problems logging in click <a href="mailto:x@comcast.net">here</a> to report it.</font> <font face="Perpetua"><br>
Click <a href="http://www.x.com">here</a> to return to main page.</font><font face="Perpetua"></font></span> </p>
</center>
</body>
</html>



Reply With Quote



Bookmarks