<!--#include file="conn.asp"-->
<!--#include file="char.asp"-->
<%

userid=trim(request("userid"))
hotelid=trim(request("hotelid"))
set rs=server.createobject("adodb.recordset")
sqltext="select * from yudingb "
rs.open sqltext,conn,3,3

rs.addnew
rs("userid")=request.form("userid")
rs("hotelid")=request.form("hotelid")
rs("dateandtime")=now()

if request.form("beizhu")="" then
	rs("beizhu")=""
else
	rs("beizhu")=htmlencode(request.form("beizhu"))
end if

rs.update

response.write "<script language=JavaScript>{window.alert('预订信息提交成功！请等待我们的确认');window.close();}</script>"
rs.close
conn.close

%>