Hi
I don't get this, could anyone help me out here, thanks :)
When I load this page, I always gets the "wrong" alert and password is
undefined, but how do I detect this in the code?
Checking if password is "" undefined or "undefined" seems to work.
-----------something.asp---------------
<%@ language="javas cript" %>
<html>
<body>
<%
var password = Request.Form("p assword");
if (password == "") Response.Write( "ZZZZZZZZZZ ");
if (password == undefined) Response.Write( "ZZZZZZZZZZ ");
if (password == "undefined" ) Response.Write( "ZZZZZZZZZZ ");
if (password == "secret")
Response.Write( "<script>alert( 'ok')</script>");
else if (password !== "")
Response.Write( "<script>alert( 'wrong.')</script>");
Response.Write( "entered="+pass word)
%>
</body>
</html>
I don't get this, could anyone help me out here, thanks :)
When I load this page, I always gets the "wrong" alert and password is
undefined, but how do I detect this in the code?
Checking if password is "" undefined or "undefined" seems to work.
-----------something.asp---------------
<%@ language="javas cript" %>
<html>
<body>
<%
var password = Request.Form("p assword");
if (password == "") Response.Write( "ZZZZZZZZZZ ");
if (password == undefined) Response.Write( "ZZZZZZZZZZ ");
if (password == "undefined" ) Response.Write( "ZZZZZZZZZZ ");
if (password == "secret")
Response.Write( "<script>alert( 'ok')</script>");
else if (password !== "")
Response.Write( "<script>alert( 'wrong.')</script>");
Response.Write( "entered="+pass word)
%>
</body>
</html>
Comment