asp表单查询代码无法执行

来源:百度知道 编辑:UC知道 时间:2024/05/27 14:15:33
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>查询录取学生记录</title>
</head>
<body>
<!--#include file="conn.asp"-->
<form action="chaxun1.asp?action=go" method="post" name="searchform">
<table width="600" border="1" align="center" bordercolor="#0000FF">
<tr>
<th scope=&q

只大概看了一下,代码太多,闹心。

你先把
if request.form("action"="go") then
改为
if request.querystring("action")="go" then
测试下,如果不对再说

第一处:if request.form("action")="go" then

第二处:sql="select * from BM_User where BM_Zkzh='" & BM_Zkzh &"'"