注册出现问题....
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
程序代码:
<script language=javascript>
function check() {if (document.form1.yonghuming.value==\"\") {alert(\"请输入用户名\"); document.form1.yonghuming.focus(); return false;} if (document.form1.password1.value==\"\") {alert(\"请输入用户密码\"); document.form1.password1.focus(); return false;} if (document.form1.password2.value==\"\") {alert(\"请再次输入用户密码\"); document.form1.password2.focus(); return false;} if (password1<>password2 then) {alert(\"两次输入的密码不一样!\") return false;}
</script>
个人注册信息页面
<%
dsql = "select * from user"
set rs=server.createobject("adodb.recordset")
rs.open dsql,conn,1,3
rs=addnew
rs("username")=request.form("yonghuming")
rs("userpass")=request.form("password1")
rs("data")=now
rs("nl")=request.form("nianling")
rs("question")=request.form("select")
rs("answer")=request.form("daan")
rs("adr")=request.form("adr")
rs("sex")=request.form("sex")
rs("email")=request.form("email")
rs.update
set rs=nothing
%>