欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

用户注册及跟踪代码(二)

程序员文章站 2022-08-11 13:26:39
2. asp代码(设立一dsn,请改动begin.)----------------------------------------文件begin.asp<%set con...
2. asp代码(设立一dsn,请改动begin.)
----------------------------------
------文件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>&nbsp;</td>
  </tr>
  <tr>
    <td>
      <table width="777" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="149" valign="top" >&nbsp; </td>
          <td width="628" valign="top">
            <table width="628" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="464" height="12" valign="top">&nbsp;</td>
                <td width="164" height="12" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td width="464" height="203" valign="top">