<%@LANGUAGE=" CODEPAGE="936"%>
<%option explicit%>
<!--#include file="Conn.asp"-->
<!--#include file="KS_Cls/Kesion.MemberCls.asp"-->
<!--#include file="KS_Cls/Kesion.Label.CommonCls.asp"-->
<!--#include file="KS_inc/Session.asp"-->
<%
dim fname,i,SqlStr,xuehao,xingming,chengji
fname=array(Request.Form("name"),",")
for i=0 to ubound(fname)
if Request.Form("name")(i+1)="" and Request.Form("lname")(i+1)="" and Request.Form("id")(i+1)="" then
else
xuehao=Request.Form("id")(i+1)
xingming=Request.Form("name")(i+1)
chengji=Request.Form("lname")(i+1)
SqlStr="insert into KS_Form_success (KS_StudentsId,KS_StudentsName,KS_num) values ("&xuehao&",'"&xingming&"',"&chengji&")"
Conn.Execute(SqlStr)
if err.number<>0 then
Response.Write"<script>alert('对不起,录入失败!');history.back();</script>"
else
Response.Write"<script>alert('恭喜您,录入成功!');history.back();</script>"
end if
xuehao=""
xingming=""
chengji=""
End if
next
%>
好了