View Single Post
Old 03-19-2005, 09:32 PM   #1 (permalink)
CrazyRomanian
 
Newb Techie

Join Date: Mar 2005

Posts: 45

CrazyRomanian

Default cant find the error

This is a piece of script that i have to do for a school profect about learnin java. Make a login screen where a user has to input usename and password, if correct the popup box correct appears, if not it says try again

<script LANGUAGE = "JavaScript">
<!--
function passcheck() {
var e = 0;
var u = 0;
var z = 0;
var final = 0;
var Pass = (Form1.Pass.value);
var User = (Form1.User.value);
if (User = 16878) {
u = 1 + u}
if (Pass = 1234) {
e = 1 + e ------------ this is the line that IE is complaining about
}
u + e = z;
if (z == 2) {
alert ("correct");
}
else {
alert ("wrong");
}
}
//-->
</script>

could someone plz help me becuase i dont know where i am going wrong.
__________________
Pain is just weakness leaving the body
CrazyRomanian is offline