<%IF Request.QueryString("action")="login" Then %><%
dim Name,Unit,Address,Phone,Fax,Email,Others,Message
set rs=server.createobject("adodb.recordset")
sqltext="select * from [Message]"
rs.open sqltext,conn,1,3
'添加一个留言到数据库
rs.addnew
rs("Name")=request.form1("Name")
rs("Unit")=request.form1("Unit")
rs("Address")=request.form1("Address")
rs("Phone")=request.form1("Phone")
rs("Fax")=request.form1("Fax")
rs("Email")=request.form1("Email")
rs("Others")=request.form1("Others")
rs("Message")=request.form1("Message")
rs.update
rs.close
set rs=nothing
response.Write("<center><meta http-equiv='refresh' content='3;URL=jzxx.asp'><BR><BR><a href='jzxx.asp'>添加成功点击返回或三秒后自动返回</a></center>")
response.end
%>
<%else%><form name="form1" method="post"
action="jzxx.asp?action=login" encType=text/plain >
.......
<%end if%>自己看一下
[此贴子已经被作者于2006-8-21 11:34:46编辑过]