关于弹出对话框问题
</html><%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户注册</title>
<style type="text/css">
<!--
.STYLE2 {font-size: 12}
.STYLE4 {font-size: 12px}
-->
</style>
<script language="javascript">
<!--
function check(form1)
{
if (form1.zname.value=="")
{
alert("请填写用户名!");
form.zname.focus();
return true;
}
if (form1.zpassword.value=="")
{
alert("请填写密码!");
form.zpassword.focus();
return true;
}
if (form1.tel.value=="")
{
alert("请输入验证码!");
form.tel.focus();
return true;
}
return true;
}
//-->
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="regcheck.asp" onSubmit="return check(form1)">
<table width="359" height="251" border="0" align="center">
<tr>
<td width="98" height="29" align="right"><span class="STYLE4">用户名:</span></td>
<td width="154"><input name="zname" type="text" id="zname" size="20" /></td>
<td width="93"> </td>
</tr>
<tr>
<td height="26" align="right"><span class="STYLE4">密码:</span></td>
<td><span class="STYLE2">
<label>
<input name="zpassword" type="password" id="zpassword" size="20" />
</label>
</span></td>
<td> </td>
</tr>
<tr>
<td height="26" align="right"><span class="STYLE4">确认密码:</span></td>
<td><span class="STYLE2">
<label>
<input name="qrpass" type="password" id="qrpass" size="20" />
</label>
</span></td>
<td> </td>
</tr>
<tr>
<td height="26" align="right"><span class="STYLE4">电话:</span></td>
<td><span class="STYLE2">
<label>
<input name="tel" type="text" id="tel" size="20" />
</label>
</span></td>
<td> </td>
</tr>
<tr>
<td height="26" align="right"><span class="STYLE4">E-mail:</span></td>
<td><span class="STYLE2">
<label>
<input name="mail" type="text" id="mail" size="20" />
</label>
</span></td>
<td> </td>
</tr>
<tr>
<td height="27" align="right"><p class="STYLE4">地址:</p> </td>
<td><span class="STYLE2">
<label>
<input name="address" type="text" id="address" size="20" />
</label>
</span></td>
<td> </td>
</tr>
<tr>
<td height="26" align="right"> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="47" align="right"> </td>
<td><span class="STYLE2">
<label>
<input type="submit" name="button" id="button" value="提交" />
</label>
<label>
<input type="reset" name="button2" id="button2" value="重置" />
</label>
</span></td>
<td> </td>
</tr>
</table>
</form>
</body>
</html>
这是一个reg.asp文件 用于用户注册的 当我没有填写任何注册信息时 弹出“请填写用户名!”的提示框,但当我单击“确定”时 怎么还是运行到了"regcheck.asp(信息处理页面)"页面
[[it] 本帖最后由 w136290854 于 2008-10-18 13:44 编辑 [/it]]