日期:2014-05-17  浏览次数:20793 次

[求助]表单没有被提交
<!--#include   file= "conn.asp "-->
<script   language=javascript>
function   check()
{if(document.form1.student.value== " ")
{alert( "请输入用户名 ");
document.form1.student.focus();
return   false;}
if(document.form1.pwd.value== " ")
{alert( "请输入用户密码 ");
document.form1.pwd.focus();
return   false;}
document.form1.ctype.vlaue= "add ";
document.form1.submit();
}
</script>
<%
session.Timeout=125
if   trim(request( "ctype "))= "add "   then
session( "student ")= " "
session( "classes ")= " "
session( "id ")= " "
session( "number ")= " "
session( "sex ")= " "
sql= "select   *   from   student   where   studentname= ' "&trim(request( "student "))& " '   and   studentpassword= ' "&trim(request( "pwd "))& " ' "
set   rs=conn.execute(sql)
if   rs.eof   then
%>
<script   language=javascript>
alert( "无此学员!请先注册 ");
</script>
<%
else
session( "student ")=rs( "studentname ")
session( "classes ")=rs( "class ")
session( "number ")=rs( "studentnumber ")
session( "sex ")=rs( "sex ")
session( "timer ")=now
%>
<script   language=javascript>
var   now=new   date()
window.navigata( "index.asp?time= "+now.getTime());
</script>
<%   end   if
end   if   %>
<html>
<head>
<meta   http-equiv= "Content-Language "   content= "zh-cn ">
<meta   name= "GENERATOR "   content= "Microsoft   FrontPage   6.0 ">
<meta   name= "ProgId "   content= "FrontPage.Editor.Document ">
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=gb2312 ">
<title> 网上考试系统 </title>
<link   rel= "stylesheet "   type= "text/css "   href= "css.css ">

<style   type   = "text/css ">
<!-
a{text-decoration:none}
a:link{text-decoration:none}
a:hover{text-decoration:none}
a:visited{text-decoration:none}
->
</style>

</head>
<body>
<!--#include   file= "top.htm "-->
<table   border= "0 "   cellpadding= "4 "   style= "border-collapse:   collapse "   bordercolor= "#111111 "   width= "778 "   height= "100 ">
    <tr>
        <td   align= "center ">
        <table   border= "0 "   width= "100% "   id= "table1 ">
    <tr>
      <td>   </td>
      <td>
<form   name=form1   action= " ">   <input   type= "hidden "   name= "ctype ">
<table   border= "0 "   bordercolor= &q