G gototlj Unregistered / Unconfirmed GUEST, unregistred user! 2003-03-12 #1 请问在Dreamweaver Mx里用什么语句可以来检查两个密码框(password,password1)输入的一致性?
小 小海 Unregistered / Unconfirmed GUEST, unregistred user! 2003-03-18 #2 在<form name="fdsaf" action="fdfasd.aspx" onsubmit="check()">加上onsubmit="check()" 然后写 <script language="javascript"> function check(){ if (fdsaf.password1.value!=fdsaf.password2.value){ alert("密码不一致! "); exit; } } </script>
在<form name="fdsaf" action="fdfasd.aspx" onsubmit="check()">加上onsubmit="check()" 然后写 <script language="javascript"> function check(){ if (fdsaf.password1.value!=fdsaf.password2.value){ alert("密码不一致! "); exit; } } </script>
L lovefox Unregistered / Unconfirmed GUEST, unregistred user! 2003-03-18 #3 <!--输入确认密码->两个密码是否相等--> <asp:CompareValidator id="CompareValidator1" ControlToValidate="passwd2" ControlToCompare="passwd" Display="Static" Font-Name="Arial" Font-Size="11" runat=server> 密码不相等 </asp:CompareValidator>
<!--输入确认密码->两个密码是否相等--> <asp:CompareValidator id="CompareValidator1" ControlToValidate="passwd2" ControlToCompare="passwd" Display="Static" Font-Name="Arial" Font-Size="11" runat=server> 密码不相等 </asp:CompareValidator>