Thanks for the prompt reply.
When I see the value of the variable valid (in firebug console), it is shown as true. Doesn't that mean valid is returned as true by the script? Also, is there any alternative?...
User Profile
Collapse
Profile Sidebar
Collapse
mishrask
Last Activity: May 8 '12, 09:38 AM
Joined: May 8 '12
Location:
-
form not submitted
...Code:function validlogin() { userin = document.getElementById("user"); passin = document.getElementById("pass"); msg = document.getElementById("error"); user = userin.value; pass = passin.value; valid = false; error = ""; k = 0; if (user=="" || user==userin.defaultValue) { error = "<p>Your Username please...</p>"; k += 1; } if (pass==""
No activity results to display
Show More
Leave a comment: