% if request("action")="save" then set rs=server.createobject("adodb.recordset") sql="select top 1 * from [candidate]" rs.open sql,conn,1,3 rs.addnew rs("job")=Trim(Request.Form("job")) rs("name")=Trim(Request.Form("name")) rs("sex")=Trim(Request.Form("sex")) rs("age")=Trim(Request.Form("age")) rs("edu_level")=Trim(Request.Form("edu_level")) rs("course")=Trim(Request.Form("course")) rs("native")=Trim(Request.Form("native")) rs("phone")=Trim(Request.Form("phone")) rs("email")=Trim(Request.Form("email")) rs("address")=Trim(Request.Form("address")) rs("zip")=Trim(Request.Form("zip")) rs("intro")=Trim(Request.Form("intro")) rs("addtime")=now() rs.update rs.close set rs=nothing response.write "" response.end end if %>
|