28,402
社区成员
发帖
与我相关
我的任务
分享
<!--#include file="Connections/conn.asp"-->
<%
id_Card=request("idCard")
exec="select * from student where idCard='"&id_Card&"' order by id desc"
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
if not rs.bof then
response.write "<script language=javascript>alert('对不起用户名已经存在');history.back()</script>"
else
response.redirect "add1.asp"
end if
%>
<!--#include file="Connections/conn.asp"-->
<%
id_Card=request("idCard")
exec="select * from student where idCard='"&id_Card&"' order by id desc"
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
if not rs.bof then
response.write "<script language=javascript>alert('数据库中已存在您孩子的信息,请不要重复提交');history.back()</script>"
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
chack1.asp
<!--#include file="Connections/conn.asp"-->
<%
id_Card=request("idCard")
exec="select * from student where idCard='"&id_Card&"' order by id desc"
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
if not rs.bof then
response.write "1"
else
response.write "0"
end if
%>
index.html
$.get('chack1.asp',{idCard,idCard},function(a){alert(a)})