|
下午本来是这样的代码:
<%if trim(request("ctype"))="add" then
sqlfind="select * from student where 学号='"&trim(request("number"))&"'"
set rsfind=Server.createobject ("ADODB.RECORDSET")
rsfind.open "select * from student where 学号='"&trim(request("number"))&"'",conn,1,1
if rsfind.eof then %>
<script language=javascript>
alert ("注册成功");
</script>
<%
sqlin="insert into student (姓名,密码,性别,班号,学号) values ('"&trim(request("student"))&"','"&trim(request("pwd"))&"','"&trim(request("sex"))&"','"&trim(request("classes"))&"','"&trim(request("number"))&"')"
set rs=conn.execute (sqlin)
%>
<%else %>
<script language=javascript>
alert ("已经存在该用户");
</script>
<%
end if
end if
%> |
|