代码如下:
<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("chenhao702.mdb")
set rs=server.createobject("adodb.recordset")
sql="select * from denglu"
rs.open sql,conn,1,3
rs.addnew
rs("UserName")=Session("UserName")
rs("Password")=Session("Password")
rs("user_nickname")=Session("user_nickname")
rs("user_name")=Session("user_name")
rs("user_sex")=Session("user_sex")
rs("user_birth")=Session("user_birth")
rs("user_idcard")=Session("user_idcard")
rs("user_favorite")=Session("user_favorite")
rs("user_postcode")=Session("user_postcode")
rs("user_addres")=Session("user_addres")
rs("user_telephone")=Session("user_telephone")
rs.Update
rs.Close
session("Login_flag")="Success"
%>
<table align="center" bgcolor="#88dff" cellspacing="0" width="60%">
<tr><td align="center">注册成功
<tr><td>
<table bgcolor="white" width="100%">
<tr><td align="certer">尊敬的<%=session("UseName")%>(<%=session("user_nickname")%>)成为我们的会员;
</table>
</table>
</body>
</html>