User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 422,949 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,603 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting

Can't get login to work online!!!!!

Join Date: Jun 2005
Posts: 10
Reputation: cynch is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
cynch cynch is offline Offline
Newbie Poster

Help Can't get login to work online!!!!!

  #1  
Jun 15th, 2005
I am working on this site which has a login page, it is up live and works fine from my computer but can't get it to work anywhere else.

This is the code:

<form>
<p><B><FONT SIZE="2" FACE="ARIAL">USER NAME :</B>
<input type="text" name="text2">
</p>

<p><B>PASSWORD :</B>
<input type="password" name="text1">
<input type="button" value="Login" name="Submit" onclick=javascript:validate(text2.value,"tekko",text1.value,"sydney") >
</p>

</form>
<script language = "javascript">

function validate(text1,text2,text3,text4)
{
if (text1==text2 && text3==text4)
load('success.html');
else
{
load('failure.html');
}
}
function load(url)
{
location.href=url;
}
</script>


Does anyone know what I'm doing wrong?
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 2:24 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC