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

2016-01-29 17:25 6 1 收藏

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

【 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&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"
                  <table width="460" border="0" cellspacing="0" cellpadding="0"
                    <tr
  

来源:https://www.tulaoshi.com/n/20160129/1501304.html

延伸阅读
标签: Web开发
表单,我相信这是前端开发者工作中最难处理的一个作业了.表单设计中几乎涉及了所有前端各方面的思想与技术.其用户注册页面即为最典型的代表,我要说设计本身没有对与错只有好与坏,就好像人的脸,只有漂亮与不漂亮,不能说某人的脸长错了.当然这其中就会有尺度去衡量,但难就难在这个尺度本身没有标准.好的,我已经为我将要阐述的观点铺好了下去的...
标签: PHP
  有三个文件: 第一是:zcyh.php(注册用户名)<?include("header1.inc.php")? <div align=center <table width="89%" border="0"     <tr         <td<font color="#ff0000"当前位置:<a href="ind...
清除Windows 7自动跟踪用户曾玩过的游戏 闲来无事,很多朋友都会玩一些自己喜欢的游戏,如果你使用的是Windows 7,又恰巧玩的是微软自家的游戏(比如帝国时代等),那么操作系统会将这款游戏的快捷方式自动添加到开始菜单的游戏程序组下。不过,如果你使用的是公用计算机,那么可能并不希望操作系统自作主张的留下这些信息。 游戏...
标签: Web开发
首先需要一个添加年级的页面,暂时叫grade.htm 这个文件需要引入两个文件jquery.js(jquery框架文件)和grade.js(验证的单独文件)。 下面的input用于输入用户名字,id="gradeInfo"是为了显示提示信息用的。 grade.htm 代码如下: input type="text" size="6" name="NAME" id="NAME"/font color="red"*/font span id="gradeInfo"/span ...
网站用户为什么注册?这个问题在平时我们讨论的并不多。我们常常单纯的在设想如何简化注册流程,如何从细节的关怀入手避免用户注册时填写错误信息造成的挫败,精心分析哪些项目用户必填,哪些选填,如何保障用户注册后的账号安全性等等。 我认为,搞清楚用户注册的动机与目的,进行有效引导,再在注册页面上以这些注册的动机与目的进行优化,与...

经验教程

819

收藏

23
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部