📄 baoming.asp
字号:
<%name=request.form("name")
sex=request.form("sex")
age=request.form("age")
jg=request.form("jg")
number=request.form("number")
date1=request.form("date1")
minzu=request.form("minzu")
xl=request.form("xl")
school=request.form("school")
xb=request.form("xb")
zy1=request.form("zy1")
zy2=request.form("zy2")
byschool=request.form("byschool")
jx=request.form("jx")
zzmm=request.form("zzmm")
address=request.form("address")
phone=request.form("phone")
youbian=request.form("youbian")
chinese=request.form("chinese")
shuxue=request.form("shuxue")
english=request.form("english")
wuli=request.form("wuli")
huaxue=request.form("huaxue")
shenwu=request.form("shenwu")
zhengzhi=request.form("zhengzhi")
tc=request.form("tc")
lishi=request.form("lishi")
dili=request.form("dili")
set conn=Server.CreateObject("ADODB.Connection")
dbpath=Server.MapPath("data.mdb")
conn.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="&dbpath
set rs=Server.CreateObject("ADODB.Recordset")
strsql="select * from baoming"
rs.Open strsql,conn,1,3%>
<%if len(name)=0 then
response.write "<center>你还没有输入你的名字!</center>"
response.end
end if
if len(age)=0 then
response.write "<center>你还没有输入你的年龄!</center>"
response.end
end if
if len(number)=0 then
response.write "<center>你还没有输入你的身份证号码!</center>"
response.end
end if
if len(date1)=0 then
response.write "<center>你还没有输入你的出生日期!</center>"
response.end
end if
if len(minzu)=0 then
response.write "<center>你还没有输入你的民族!</center>"
response.end
end if
if xl="请选择" then
response.write "<center>你还没选择好你的学历!</center>"
response.end
end if
if len(xb)=0 then
response.write "<center>你还没有输入你要报的系别!</center>"
response.end
end if
if len(zy1)=0 then
response.write "<center>专业名至少要填一个</center>"
response.end
end if
if len(byschool)=0 then
response.write "<center>毕业学校一定要填</center>"
response.end
end if
if len(address)=0 then
response.write "<center>你的通讯地址一定要填写,而且要填写正确,否则你所报的学校的通知书你就收不到了!</center>"
response.end
end if
if len(youbian)=0 then
response.write "<center>邮政编码一定要填写,否则你就收不到通知书了!</center>"
response.end
end if
rs.addnew
rs("name")=name
rs("sex")=sex
rs("age")=age
rs("number")=number
rs("date1")=date1
rs("minzu")=minzu
rs("xl")=xl
rs("school")=school
rs("xb")=xb
rs("zy1")=zy1
rs("zy2")=zy2
rs("byschool")=byschool
rs("jx")=jx
rs("zzmm")=zzmm
rs("address")=address
rs("phone")=phone
rs("youbian")=youbian
rs("chinese")=chinese
rs("shuxue")=shuxue
rs("english")=english
rs("wuli")=wuli
rs("huaxue")=huaxue
rs("shenwu")=shenwu
rs("zhengzhi")=zhengzhi
rs("tc")=tc
rs("jg")=jg
rs("lishi")=lishi
rs("dili")=dili
rs("time")=now()
rs.update
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<title>报名</title>
<link rel="stylesheet" type="text/css" href="bao.css">
</head>
<body style="text-align: center">
<p align="center"><b>祝贺您,您在<%=rs("school")%>的报名成功!下面是您的报名表:</b></p>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" style="border-left:3px solid #800000; border-right:3px solid #800000; border-collapse: collapse" bordercolor="#800000" width="79%" id="AutoNumber1" height="250">
<tr>
<td width="15%" height="31" style="border-left: 3px solid #800000; border-top-width: 1; border-bottom-width: 1">
<p> <b>姓名:</b></td>
<td width="13%" height="31"><p align="center"><%=rs("name")%></td>
<td width="15%" height="31">
<p align="center"><b>年龄:</b></td>
<td width="7%" height="31"><p align="center"><%=rs("age")%></td>
<td width="15%" height="31">
<p align="center"><b>性别:</b></td>
<td width="5%" height="31">
<p align="center"><%=rs("sex")%></td>
<td width="14%" height="31">
<p align="center"><b>出生日期:</b></td>
<td width="37%" height="31">
<p align="center"><%=rs("date1")%></td>
</tr>
<tr>
<td width="12%" height="31" style="border-left-style: solid; border-left-width: 3; border-top-width: 1; border-bottom-width: 1">
<p> <b>民族:</b></td>
<td width="13%" height="31">
<p align="center">
<%=rs("minzu")%></td>
<td width="15%" height="31">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -