I know that the best way to make a log-in is by using PHP, but since I still don't have an FTP program (please don't give me links or anything, only pay attention to my questions please), I can't use it. I want the javascript to validate one textfield (for now, since I can add a password one later). I have an array of the usernames, and what I did was use a for statement to go to let's say 100, then in the for statement I had an if statement, which basically says:

for (i=0,i<=100,i++) {
if (textFieldName==myArray[i]) {
alert("Welcome")
} else {
alert("Wrong")
}
}

It doesn't work, and I don't know why. I'm knew to javascript, so it would be awsome if you ppl could help me!