【 tulaoshi.com - ASP 】
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" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" text="#333333"
<table width="750" border="0" cellspacing="0" cellpadding="0"
<tr
<td </td
</tr
<tr
<td
<table width="777" border="0" cellspacing="0" cellpadding="0"
<tr
<td width="149" valign="top" </td
<td width="628" valign="top"
<table width="628" border="0" cellspacing="0" cellpadding="0"
<tr
<td width="464" height="12" valign="top" </td
<td width="164" height="12" valign="top" </td
</tr
<tr
<td width="464" height="203" valign="top"
<table width="460" border="0" cellspacing="0" cellpadding="0"
<tr