大致就是这样
<%
DIM pwd,confirmPwd,input
input=Request.Form("input")
IF input="input" THEN
pwd=Request.Form("pwd")
confrimPwd=Request.Form("confirmPwd")
IF pwd<>confirmPwd THEN Response.Write "两次输入的密码不一致"
END IF
%>
<form action="" method="post">
<input type="hidden" name="input" value="input">
<input type="password" name="pwd" value="">
<input type="password" name="confirmPwd" value="">
<input type="submit" value="submit">
</form>