|
2. ASP代码(设立一DSN,请改动begin.asp)
----------------------------------
------文件begin.asp
<%
Set Con = Server.CreateObject( "ADODB.Connection" )
Con.Open "test" ,"test","test"
%>
-----文件reg_step1.asp
<html>
<head>
<title>会员注册--基本信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT LANGUAGE="javascript1.1">
function verifyIt(form) {
for (i = 0; i <document.forms[0].elements.length; i++) {
if (document.forms[0].elements[i].type == "text" && document.forms[0].elements[i].value == ""){
alert("所有内容必须填写!")
return false;
}
}
if (document.forms[0].n_pass.value.length<6){
alert("密码不得少于6位")
return false
}
if (document.forms[0].n_pass.value!=document.forms[0].nq_pass.value){
alert("密码与确认密码不一致!")
document.forms[0].n_pass.value=""
document.forms[0].nq_pass.value=""
return false;
}
return true;
}
</SCRIPT>
</head>
<body bgcolor="#FFFFFF&[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >> |
|
|
|
|
|
|
|