求大侠:这一段源码出了什么问题?
我是一个ASP菜鸟,现求助各位大侠:我不知道这段代码哪里错了!!! 谢谢了!!!-------------------------baoming.htm-----------------------------------
<form name=form action=add.asp method=post onsubmit="return checkform();">
<table width=98% height=74 border=1 align="center" cellpadding=0 cellspacing=0 bordercolordark=#ffffff
bgcolor=#f2f2f2 style="border: 1 solid #003399">
<tr bgcolor="#003399">
<td height=31 colspan="5"> <p align="center"><font size="-1"><font
color=#ffffff>&nbsp;</font><span class="e"><font color="#FFFFFF">报名人员基本信息</font></span><font
color=#ffffff>&nbsp;</font><span class="e"><font color="#FFFF66">(兰色*号为必须正确填写)</font></span><font color="#FFFF66">
</font></font> </td>
</tr>
<tr>
<td width=76 height=31> <div align="center"><font size="-1">&nbsp;<span class="c">姓 名:</span></font></div></td>
<td width=99 height=31> <font size="-1">
<input size=10 name=name>
<font color="#000080">*</font></font> </td>
<td width=113 height=31 valign="middle"> <div align="center"><font size="-1"><span class="c" style="FONT-SIZE: 9pt">性
别:</span>
<select tabindex=2 size=1 name=sex>
<option
selected>男</option>
<option>女</option>
</select>
</font></div></td>
<td width=88 height=31> <div align="center" class="c"><font size="-1">民&nbsp;&nbsp;&nbsp;
族:</font></div></td>
<td width=157 height=31> <font size="-1">
<input name="textfield2" type="text" size="20">
</font></td>
</tr>
<tbody>
<tr>
<td width=76 height=31 class="c"> <p align=center><font size="-1">出生日期:</font></p></td>
<td height=31 colspan="2"> <font color="#008000" size="-1">
<input name="textfield" type="text" id="textfield" size="6">
-
<input name="born" type="text" id="textfield2" size="3">
- </font><font color="#008000" size="-1">
<input name="born1" type="text" id="textfield3" size="3">
</font><font color="#000080" size="-1">*</font><font color="#ff0000" size="-1">&nbsp;</font>
</td>
<td width=88 height=31> <p align=center class="c"><font size="-1">身份证号:</font></p></td>
<td width=157 height=31><font size="2"><font color="#008000" size="-1">
<input name="textfield3" type="text" size="20">
</font></font></td>
</tr>
<tr>
<td width=76 height=16 class="c"> <p align=center><font size="-1">籍 贯:</font></p></td>
<td height=31 colspan="2"> <font size="-1">
<input type="text" name="textfield4" size="25">
</font></td>
<td width=88 height=16> <p align=center class="c"><font size="-1">文化程度:</font></p></td>
<td width=157 height=16> <font color="#ff0000" size="-1">
<select size=1 name=leve>
<option value=初中>初中</option>
<option value=高中 selected>高中</option>
<option
value=中专>中专</option>
<option value=中技>中技</option>
<option
value=职高>职高</option>
<option value=大专>大专</option>
<option>*请选择*</option>
</select>
</font><font color="#000080" size="-1">*</font></td>
</tr>
<tr>
<td width=76 height=1 class="c"> <div align="center"><font size="-1">毕业院校:</font></div></td>
<td height=31 colspan="2"> <font size="-1">
<input size=25 name=school>
<font color="#000080">*</font></font> </td>
<td width=88 height=1> <div align="center" class="c"><font size="-1">政治面貌:</font></div></td>
<td width=157 height=1> <font size="-1">
<input name="textfield5" type="text" size="20">
</font></td>
</tr>
<tr>
<td width=76 height=1 class="c"> <p align="center"><font size="-1">
身 高:</font></td>
<td height=31 colspan="2"> <font size="-1">
<input type="text" name="textfield6" size="25">
</font></td>
<td width=88 height=1 class="c"> <p align="center"><font size="-1">邮政编码:
</font></td>
<td width=157 height=1> <font size="-1">
<input size=15 name=skill>
<font color="#000080">*</font></font></td>
</tr>
<tr>
<td width=76 height=1 class="c"> <p align="center"><font size="-1">本人特长:
</font></td>
<td height=31 colspan="2"> <font size="-1">
<input type="text" name="T1" size="25">
&nbsp;&nbsp;&nbsp;&nbsp; </font></td>
<td width="88" height=31 class="c"> <div align="center"><font size="-1">&nbsp;担任职务:&nbsp;</font></div></td>
<td height=31 width="157"><font size="-1">
<input name="D1" type="text" id="D1" size="20">
</font></td>
</tr>
<tr>
<td width=76 height=4 rowspan="4" class="c"> <p style="LINE-HEIGHT: 150%" align=center><font size="-1">家庭成员基本情况(父母工作单位及联系方法等):</font></p></td>
<td width="99" height=24 class="c"> <div align="center"><font size="-1">称谓</font></div></td>
<td width="113" height=31 class="c"> <div align="center"><font size="-1">姓名</font></div></td>
<td width="88" height=24 class="c"> <div align="center"><font size="-1">联系电话</font></div></td>
<td width="157" height=24 class="c"> <div align="center"><font size="-1">工作单位</font></div></td>
</tr>
<tr>
<td width="99" height=24> <div align="center" class="c"><font size="-1">父亲</font></div></td>
<td width="113" height=31> <div align="center"> <font size="-1">
<input type="text" name="textfield7" size="10">
</font></div></td>
<td width="88" height=24> <div align="center"> <font size="-1">
<input type="text" name="textfield9" size="10">
</font></div></td>
<td width="157" height=24> <div align="center"> <font size="-1">
<input type="text" name="textfield11" size="20">
</font></div></td>
</tr>
<tr>
<td width="99" height=20> <div align="center" class="c"><font size="-1">母亲</font></div></td>
<td width="113" height=31> <div align="center"> <font size="-1">
<input type="text" name="textfield8" size="10">
</font></div></td>
<td width="88" height=20> <div align="center"> <font size="-1">
<input type="text" name="textfield10" size="10">
</font></div></td>
<td width="157" height=20> <div align="center"> <font size="-1">
<input name="textfield12" type="text" size="20">
</font></div></td>
</tr>
<tr>
<td width="99" height=1> <p align="center"><font size="-1"></font></p></td>
<td height=1 colspan="3"><font size="-1"> </font></td>
</tr>
</tbody>
</table>
<b>
<table width=98% border=1 align="center" cellpadding=0 cellspacing=0 bordercolordark=#ffffff
bgcolor=#f2f2f2 style="border: 1 solid #003399">
<tbody>
<tr bgcolor="#003399">
<td height=31 colspan="4"> <p align="center" class="e"><font color="#FFFFFF" size="-1">文化成绩</font></td>
</tr>
<tr>
<td width=66 height=23> <p align="center" class="c"><font size="-1">中考成绩:</font></p></td>
<td width=209 height=31> <font color="#800000" size="-1">
<input name=huikao id="huikao" size=26>
*</font></td>
<td width=96 height=23> <p align="center" class="c"><font size="-1">高考成绩(文):</font></p></td>
<td width=164 height=23> <font color="#800000" size="-1">
<input name=gaokao id="gaokao" size=20>
</font></td>
</tr>
<tr class="c">
<td height=23> <div align="center"><font size="-1">考籍号:</font></div></td>
<td height=31><font color="#800000" size="-1">
<input name=kaoji id="kaoji" size=26>
</font></td>
<td height=23> <div align="center"><font size="-1">高考成绩(理):</font></div></td>
<td height=23><font color="#800000" size="-1">
<input name=li id="li" size=20>
</font></td>
</tr>
</table>
</b>
<table width=98% height=95 border=1 align="center" cellpadding=0 cellspacing=0 bordercolordark=#ffffff
bgcolor=#f2f2f2 style="border: 1 solid #003399">
<tbody>
<tr bgcolor="#003399">
<td height=31 colspan="4"> <p align="center" class="e"><font color="#FFFFFF" size="-1">报名人员联系方法及专业</font></td>
</tr>
<font color="#800000"><font size="2">
<tr>
<td width=68 height=23> <p align="center"><font color="#000000" size="-1">通讯地址:</font></p></td>
<td width=219 height=31> <font color="#000000" size="-1">
<input size=26 name=address>
*</font></td>
<td width=85 height=23> <p align="center"><font color="#000000" size="-1">电话、手机:</font></p></td>
<td width=167 height=23> <font color="#000000" size="-1">
<input size=20 name=phone>
</font></td>
</tr>
<tr>
<td width=68 height=23> <p align="center"><font color="#000000" size="-1">&nbsp;Email:</font></p></td>
<td width=219 height=31> <font color="#000000" size="-1">&nbsp; </font><font color="#800000"><font size="2"><font color="#000000" size="-1">
<input size=26 value=" @" name=email>
</font></font></font></td>
<td width=85 height=23> <div align="center"><font color="#000000" size="-1"> 就读专业:</font></div></td>
<td width=167 height=23 align="left"><font color="#000000" size="-1">
<input name="bkzy" type="text" id="bkzy" size="20">
</font></td>
</tr>
<tr valign="middle">
<td height=31 colspan="4"><font color="#000000" size="-1"> 是否签定就业合同:
<input name="jiuye" type="radio" value="1" checked>
是
<input type="radio" name="jiuye" value="0">
否 入学后是否申请担任什么职位干部:
<input name="textfield13" type="text" size="10">
</font></td>
</tr>
<tr>
<td height=31 colspan="4"><font color="#000000" size="-1"> 入学后是否准备入团、入党:<b>
<input name="rudang" type="radio" value="1" checked>
</b>是<b>
<input type="radio" name="rudang" value="0">
</b>否<b> </b></font></td>
</tr>
<tr>
<td colspan=4 height=31> <p style="MARGIN-LEFT: 20px" align=center><font size="-1"><b><font color="#003399">以上联系方法中至少填写一种,以便于我们与您联系!</font><font
color=#0000ff><br>
</font><font color="#FF6666">邮箱地址请填经常使用的邮箱</font></b></font></p></td>
</tr>
</font></font>
</table>
<table width=98% height=71 border=1 align="center" cellpadding=0 cellspacing=0 bordercolordark=#ffffff
bgcolor=#f2f2f2 style="border: 1 solid #003399">
<tbody>
<tr>
<td width=596 height=30 bgcolor="#003399"> <p align="center" class="e"><font color="#FFFFFF" size="-1">报名人员个人简历
</font></td>
</tr>
<font color="#800000"><font size="2">
<tr>
<td width=596 height=46> <p align=center><font size="-1"><br>
<textarea name=describe rows=5 cols=66 wrap=hard></textarea>
<font color="#000080">*</font></font></p></td>
</tr>
<tr>
<td width=596 height=33> <p style="LINE-HEIGHT: 150%" align=center><font size="-1"><b><font color="#FF6666">请详细的填写你的个人简历,以便我们对你的情况有了解。如有其他问题请与联系</font></b></font></p></td>
</tr>
</font></font>
</table>
<p
align=center> <font size="-1">
<input type=submit value="报 名" name=B1>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type=reset value=清除重来 name=B2>
</font> </p>
</form>
--------------------------add.asp--------------------------------------------
<%
set cn=server.createobject("ADODB.connection")
cn.open "driver={Microsoft Access Driver (*.mdb)};dbq="&server.Mappath("./lmadmin/datebase/ubbs2000.mdb")
set rs0=server.createobject("ADODB.RecordSet")
rs0.open "select * from baoming ",cn
set cn0=server.createobject(")
set rs=server.createobject("ADODB.Recordset")
"select * from baoming"
set cn0.ActiveConnection=cn
rs.open cn0,3,1
rs.AddNew
born=request("textfield")+"-"+request("born")+"-"+request("born1")
rs("zh_name")=request("name")
rs("zh_sex")=request("sex")
rs("zh_folk")=request("textfield2")
rs("zh_born")=request("born")
rs("zh_no")=request("textfield3")
rs("zh_jg")=request("textfield4")
rs("zh_school")=request("school")
rs("zh_wf")=request("leve")
rs("zh_zz")=request("textfield5")
rs("zh_height")=request("textfield6")
rs("zh_skill")=request("T1")
rs("zh_body")=request("D1")
rs("zh_add")=request("address")
rs("zh_tel")=request("phone")
rs("zh_post")=request("skill")
rs("zh_zy")=request("bkzy")
rs("zh_resume")=replace(replace(request("describe"),"'","''"),vbcrlf,"<br>")
if trim(request("email"))<>"@" then
rs("zh_email")=request("email")
end if
if trim(request("textfield7"))<>"" Then
rs("zh_father")=request("textfield7")
end if
if trim(request("textfield8"))<>"" then
rs("zh_mother")=request("textfield8")
end if
if trim(request("textfield11"))<>"" then
rs("zh_work1")=request("textfield11")
end if
if trim(request("textfield12"))<>"" then
rs("zh_work2")=request("textfield12")
end if
if trim(request("textfield9"))<>"" then
rs("zh_tel1")=request("textfield9")
end if
if trim(request("textfield10"))<>"" then
rs("zh_tel2")=request("textfield10")
end if
rs("zh_gaokao")=request("gaokao")
rs("zh_huikao")=request("huikao")
rs("zh_kaoji")=request("kaoji")
rs("zh_li")=request("li")
rs("zh_date")=now()
rs.Update
rs.Close
Set rs=nothing
cn.close
set cn=nothing
response.write "<br>"
response.write "<br>"
response.write "<br>"
response.write "<font color=#0066CC><p align=center>您已经报名成功!"
response.write "<p align=center>我们将通过您的联系方式进行确认!"
response.write "<p align=center>E-mail:yangbo@
response.write "<p align=center><a href='window.close();'>关闭窗口</a></font>"
response.write "<br>"
response.write "<br>"
response.write "<br>"
response.write "<font color=#0066CC><p align=center>不能重复报名,此姓名已存在!"
response.write "<p align=center>谢谢合作!"
%>
-----------------------------------------------------------------------------------------------