当前位置:编程学习 > asp >>

asp保存信息

asp保存信息

<!--#include file="Inc/Conn.asp"-->
<!--#include file="Inc/articleCHAR.INC"-->
<%
If request.form("jobname")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输入应聘岗位,请返回检查!!"");history.go(-1);</script>")
response.end
end if
If request.form("mane")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输入姓名,请返回检查!!"");history.go(-1);</script>")
response.end
end if
If request.form("易做图")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输入性别,请返回检查!!"");history.go(-1);</script>")
response.end
end if
If request.form("birthday")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输入出生日期,请返回检查!!"");history.go(-1);</script>")
response.end
end if
If request.form("marry")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输入婚姻状况,请返回检查!!"");history.go(-1);</script>")
response.end
end if
If request.form("school")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输入毕业院校,请返回检查!!"");history.go(-1);</script>")
response.end
end if
If request.form("studydegree")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输入学 历,请返回检查!!"");history.go(-1);</script>")
response.end
end if
If request.form("specialty")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输入专 业,请返回检查!!"");history.go(-1);</script>")
response.end
end if
If request.form("gradyear")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输入毕业时间,请返回检查!!"");history.go(-1);</script>")
response.end
end if
If request.form("telephone")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输入电 话,请返回检查!!"");history.go(-1);</script>")
response.end
end if
If request.form("email")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输入E-mail,请返回检查!!"");history.go(-1);</script>")
response.end
end if
If request.form("address")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输易做图系地址,请返回检查!!"");history.go(-1);</script>")
response.end
end if
If request.form("ability")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输入水平与能力,请返回检查!!"");history.go(-1);</script>")
response.end
end if
If request.form("resumes")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输入个人简历,请返回检查!!"");history.go(-1);</script>")
response.end
end if

Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from jobbook"
rs.open sql,conn,1,3

rs.addnew
rs("jobname")=request.form("jobname")
rs("mane")=request.form("mane")
rs("易做图")=request.form("易做图")
rs("birthday")=request.form("birthday")
rs("marry")=request.form("marry")
rs("school")=request.form("school")
rs("studydegree")=request.form("studydegree")
rs("specialty")=request.form("specialty")
rs("gradyear")=request.form("gradyear")
rs("telephone")=request.form("telephone")
rs("email")=request.form("email")
rs("address")=request.form("address")
rs("ability")=htmlencode2(request.form("ability"))
rs("resumes")=htmlencode2(request.form("resumes"))
rs("time")=now()
rs.update
rs.close
  response.write"<SCRIPT language=JavaScript>alert('应聘申请已提交成功!');"
  response.write"javascript:history.go(-2)</SCRIPT>"
%>

补充:asp教程,ASP入门
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,