不输入任何资料也能提交是是怎么回事?
<!--#include file="inc/conn.asp"--><%
address=request("address")'地址'
ypname=request("ypname")'姓名'
ypsex=request("ypsex")'性别'
ypStatus=request("ypStatus")'应聘岗位'
zy=request("zy")'专业'
bytime=request("bytime")'毕业时间'
email=request("email")'邮箱'
csdata=request("csdata")'生日'
content=request("content")'简介'
bySchool=request("bySchool")'毕业学校'
xueli=request("xueli")'学历'
Phone=request("Phone")'电话'
%>
<script>
function chkform(formname){
if (formname.sedata.value=="")
{
alert('生日必须填写')
formname.sedata.focus();
return false
}
if (formname.ypsex.value=="")
{
alert('性别必须填写')
formname.ypsex.focus();
return false
}
if (formname.address.value==""){
alert('所住地址必须填写')
formname.address.focus();
return false
}
if (formname.ypname.value==""){
alert('姓名必须填写')
formname.ypname.focus();
return false
}
if (formname.byschool.value==""){
alert('毕业院校必须填写')
formname.byschool.focus();
return false
}
if (formname.ypStatus.value==""){
alert('应聘岗位必须赶写')
formname.ypStatus.focus();
return false
}
if (formname.zy.value==""){
alert('专业必须填写')
formname.zy.focus();
return false
}
if (formname.hone.value==""){
alert'电话必须填写'
formname.phone.focus();
return false
}
if (formname.email.value==""){
alert('e-mail必须填写')
formname.email.focus();
return false
}
if (formname.content.value==""){
alert'个人简历必须填写'
formname.content.focus();
return false
}
if(formname.xueli.value==""){
alert'学历必须赶写'
formname.xueli.focus();
return false
}
}
</script>
<%
set rs=server.CreateObject("adodb.recordset")
sql ="select * from jobypren "
rs.open sql,conn,1,3
rs.addnew()
rs("address")=address
rs("ypname")=ypname
rs("ypsex")=ypsex
rs("ypStatus")=ypStatus
rs("zy")=zy
rs("bytime")=bytime
rs("csdata")=csdata
rs("email")=email
rs("content")=content
rs("bySchool")=bySchool
rs("xueli")=xueli
rs("Phone")=Phone
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
response.Write"<script> alert('自荐表单发送成功');window.location='job.asp'</script>"
response.End()
%>