<!--#include file="conn.asp" -->
<%
set rs=server.createobject("adodb.recordset")
id1=request("id")
if request("text1")="" then
response.write "<script language=JavaScript>" & chr(13) & "alert('请输入学号!');" & "history.back()" & "</script>"
Response.End
end if
number=request("text1")
name=request("text2")
testnumber=request("text3")
idnumber=request("text4")
sex=request("text5")
time=request("text6")
city=request("text7")
area=request("text8")
address=request("text9")
postcode=request("text10")
homephone=request("text11")
bedroomphone=request("text12")
mobilephoe=request("text13")
major=request("text14")
class=request("text15")
collogetestach=request("text16")
rp=request("text17")
info=request("text18")
sql="update class st_info use_number='"&number&"',user_name='"&name&"',user_testnumber='"&testnumber&"',user_idnumber='"&idnumber&"',user_sex='"&sex&"',user_ time='"&time&"',user_city='"&city&"',user_area='"&area&"',user_address='"&address&"',user_postcode='"&postcode&"',user_homehpone='"&homephone&"',user_bedroomhpone='"&bedroomphone&"',user_mohilephoe='"&mobilephoe&"',user_major='"&major&"',user_class='"&class&"',user_collogetestach='"&collogetestach&"',user_rp='"&rp&"',user_info='"&info&"' where id="+id1
rs.Open sql,conn,1,1
response.write "<script language=JavaScript>" & chr(13) & "alert('记录信息修改成功!');"&"window.location.href = '4.asp'"&" </script>"
set rs=nothing
%>