向asp高手求助!一个注册问题

来源:百度知道 编辑:UC知道 时间:2024/06/24 09:29:28
<form name="form1" onSubmit="javascript: return check_Null();" action="" method="post">
<table width="90%" border="0" cellPadding="4" cellSpacing=1 borderColorLight="#cccccc" borderColorDark="#ffffff" bgcolor="#999999">
<tr bgcolor="#FFFFFF">
<td width="88" >用户名</td>
<td width="393"><%=Session("user_id")%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td >真实姓名</td>
<td ><input size=15 name="realname" type="text" >*</td>
</tr>
<tr bgcolor="#FFFFFF">
<td >性别</td>
<td ><input type="radio" name="sex" value="男" checked>男
<input type="radio&

构造SQL语句,QQ、tel、intro允许为空

'这段代码的作用是最终生成一句sql查询语句
strSql="Update users Set realname='" & Request.Form("RealName") & "'"'realname字段更新
strSql=strSql & ",email='" & Request.Form("email") & "'"'email字段更新
strSql=strSql & ",sex='" & Request.Form("sex") & "'"'sex字段更新
strSql=strSql & ",submit_date=#" & Date() & "#"'submit_date字段更新因为是时间所以加双#
If Request("QQ") <> "" Then'若qq传递过来了则加上更新intro字段的
strSql = strSql & ",QQ='" & Request.Form("QQ") & "'"
End If
If Request("tel") <> "" Then'若tel传递过来了则加上更新intro字段
strSql = strSql & ",tel='" & Request.Form("tel") & "'"
End If
If Request("intro") <> "&qu