⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 regpost.asp

📁 西风班级信息管理系统 v1.1的源码
💻 ASP
📖 第 1 页 / 共 2 页
字号:
        <tr> 
          <td width="5%">&nbsp;</td>
          <td width="16%">邮政编码:</td>
          <td width="29%"><font color=red><%=zipcode%></font></td>
          <td width="5%">&nbsp;</td>
          <td width="16%">&nbsp;</td>
          <td width="29%">&nbsp;</td>
        </tr>
        <tr> 
          <td width="5%">&nbsp;</td>
          <td width="16%">提示问题:</td>
          <td width="29%"><font color=red><%=forq%></font></td>
          <td width="5%">&nbsp;</td>
          <td width="16%">问题答案:</td>
          <td width="29%"><font color=red><%=foran%></font></td>
        </tr>
        <tr> 
          <td width="5%">&nbsp;</td>
          <td width="16%">个人主页:</td>
          <td colspan="4"><font color=red><%=page%></font></td>
        </tr>
        <tr> 
          <td width="5%">&nbsp;</td>
          <td width="16%">工作单位:</td>
          <td colspan="4"><font color=red><%=address%></font></td>
        </tr>
        <tr> 
          <td width="5%">&nbsp;</td>
          <td width="16%">爱好:</td>
          <td width="29%"><font color=red><%=aihao%></font></td>
          <td width="5%">&nbsp;</td>
          <td width="16%">性格:</td>
          <td width="29%"><font color=red><%=xinge%></font></td>
        </tr>
        <tr> 
          <td width="5%">&nbsp;</td>
          <td width="16%">崇拜偶像:</td>
          <td colspan="4"><font color=red><%=idol%></font></td>
        </tr>
        <tr> 
          <td width="5%" height="25">&nbsp;</td>
          <td width="16%" height="25">最喜欢的音乐:</td>
          <td colspan="4" height="25"><font color=red><%=music%></font></td>
        </tr>
        <tr> 
          <td width="5%" height="5">&nbsp;</td>
          <td width="16%" height="5">最难忘的格言:</td>
          <td colspan="4" height="5"><font color=red><%=geyan%></font></td>
        </tr>
        <tr> 
          <td width="5%" height="25">&nbsp;</td>
          <td width="16%" height="25">最喜欢的运动:</td>
          <td colspan="4" height="25"><font color=red><%=sports%></font></td>
        </tr>
        <tr> 
          <td width="5%" height="25">&nbsp;</td>
          <td width="16%" height="25">最向往的职业:</td>
          <td colspan="4" height="25"><font color=red><%=job%></font></td>
        </tr>
        <tr> 
          <td width="5%" height="25">&nbsp;</td>
          <td width="16%" height="25">最爱吃的食物:</td>
          <td colspan="4" height="25"><font color=red><%=loveat%></font></td>
        </tr>
        <tr> 
          <td width="5%" height="25">&nbsp;</td>
          <td width="16%" height="25">最爱去的地方:</td>
          <td colspan="4" height="25"><font color=red><%=goaddress%></font></td>
        </tr>
        <tr> 
          <td colspan="6" height="25"> 
            <div align="center">
              <INPUT class=stbtm onclick="javascript:parent.location.href='index.asp';" type=button value=返回首页 name=Submit1>
            </div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td height="2"><img src="images/tabledown.gif" width="578" height="20"></td>
  </tr>
</table></td>
    <td width="14%" valign="top"><table width="100%" border="0" align="center" cellpadding="3">
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td><div align="center"><img src="IMAGES/lg1.gif" width="34" height="32"></div></td>
        </tr>
        <tr> 
          <td><div align="center"><a href="reg.asp">注 册</a></div></td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td><div align="center"><img src="IMAGES/lg2.gif" width="29" height="33"></div></td>
        </tr>
        <tr> 
          <td><div align="center"><a href="modify.asp">修改资料</a></div></td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td><div align="center"><img src="IMAGES/lg3.gif" width="32" height="32"></div></td>
        </tr>
        <tr> 
          <td><div align="center"><a href="javascript:getpwd()">忘记密码</a></div></td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td><div align="center"><img src="IMAGES/lg4.gif" width="33" height="32"></div></td>
        </tr>
        <tr> 
          <td><div align="center"><a href="main.asp">返回首页</a></div></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>


	<%
	'修该记录
	else
	userid=session("myuserid")
	password=trim(sqlstr(request.form("password")))'2
	truename=trim(sqlstr(request.form("truename")))'3
	sex=request.form("sex")'4
	snxiao=request.form("snxiao")'5
	blood=request.form("blood")'6
	'构造生日
	byear=request.form("byear")
	bmonth=request.form("bmonth")
	bday=request.form("bday")
	birthday=cdate(byear&"-"&bmonth&"-"&bday)'7
	xingzuo=request.form("xingzuo")'8
	mypic=request.form("mypic")
	if mypic="不必填写" then
	mypic=""
	end if
	headpic=request.form("headpic")'9
	face=headpic
	if  not mypic="" then
	face=mypic
	end if
	picchan=request.form("picchan")
	if picchan<>"" then
	headpic=picchan
	end if

	'函数名ifhave
	'功能:判断变量是否为空,空则值赋予“暂无”
	Function ifhave(data)
	data=trim(sqlstr(data))
	if data="" then
	data="暂无"
	end if
	ifhave=data
	End Function

	telephone=ifhave(request.form("telephone"))'10
	mobile=ifhave(request.form("mobile"))'11
	oicq=ifhave(request.form("oicq"))'12
	email=ifhave(request.form("email"))'13
	page=ifhave(request.form("page"))'14
	zipcode=request.form("zipcode")'15
	address=ifhave(request.form("address"))'16
	forq=ifhave(request.form("forq"))'17
	foran=ifhave(request.form("foran"))'18
	aihao=ifhave(request.form("aihao"))'19
	xinge=ifhave(request.form("xinge"))'20
	idol=ifhave(request.form("idol"))'21
	music=ifhave(request.form("music"))'22
	geyan=ifhave(request.form("geyan"))'23
	sports=ifhave(request.form("sports"))'24
	job=ifhave(request.form("job"))'25
	loveat=ifhave(request.form("loveat"))'26
	goaddress=ifhave(request.form("goaddress"))'27
	if password<>session("mypwd") and request.cookies("flag")="yes" then
	response.cookies("password")=password
	end if
	
	sql="select * from txluser where userid='"&userid&"'"
	set rs=Server.CreateObject("ADODB.recordset")
	rs.open sql,conn,1,3
	rs("password")=password
	rs("truename")=truename
	rs("sex")=sex
	rs("snxiao")=snxiao
	rs("blood")=blood
	rs("birthday")=birthday
	rs("xingzuo")=xingzuo
	rs("headpic")=headpic
	rs("telephone")=telephone
	rs("mobile")=mobile
	rs("oicq")=oicq
	rs("email")=email
	rs("page")=page
	rs("zipcode")=zipcode
	rs("address")=address
	rs("forq")=forq
	rs("foran")=foran
	rs("aihao")=aihao
	rs("xinge")=xinge
	rs("idol")=idol
	rs("music")=music
	rs("geyan")=geyan
	rs("sports")=sports
	rs("job")=job
	rs("loveat")=loveat
	rs("goaddress")=goaddress
	rs.update
	session("mypwd")=password
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing%>
	<script language="Javascript">
	alert('修改成功!请重新登录')
	parent.location.href="index.asp"
	</Script>
	<%end if
	%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -