初学asp,问题http:500服务器内部错误,同志们帮忙看看问题在哪里啊

ufo5260987423 2012-05-06 10:45:07
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<!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=utf-8" />
<title>简介</title>
<script src="../javascript/intr_photo.js" type="text/javascript" language="javascript"></script>
<link href="../css/common.css" type="text/css" rel="stylesheet"/>
<link href="../css/contact.css" type="text/css" rel="stylesheet" />
<link href="../css/hex.css" type="text/css" rel="stylesheet" />
<style type="text/css">
#left{
cursor:pointer;
position:absolute;
margin-left:0;
margin-top:150px;
margin-right:0px;
width:12px;
background-image:url(../photos/submit_un_side_left.jpg);
height:60px;}
#middle{margin-top:0;
margin-left:12px;
margin-right:0;}
#right{
cursor:pointer;
position:absolute;
margin-left:0px;
margin-top:150px;
width:12px;
background-image:url(../photos/submit_un_side_right.jpg);
height:60px;
left: 600px;
top: -1px;
}
#left:active{
cursor:pointer;
background-image:url(../photos/submit_click_side_left.jpg);}
#right:active{
cursor:pointer;
background-image:url(../photos/submit_click_side_right.jpg);}
</style>
</head>
<%
if(Request.Form("name")&&Request.Form("password"))
{
Response.Cookies("user_password_load")=Request.Form("password");
Response.Cookies("user_name_load"=&Request.Form("password");
var password_history=Request.Cookies("user_password_load");
var name_history=Request.Cookies("user_name_load");
var conn = new ActiveXObject("ADODB.Connection");
conn.Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=wave; User ID=ufo-pc; "+"Password=; Initial Catalog=pubs");

var rs=Server.CreateObject("ADODB.recordset");
var sql="SELECT user, password FROM user_list WHERE user='"+name_history+"' AND password='"+password_history+"'";
rs.Open(sql,conn);
%>
<body>
<div id="outline">
<div id="logo">
<img src="../photos/logo.jpg" />
<img src="../photos/div-spred.jpg" />
</div>
<div id="navigation">
<ul>
<li><a href="index.html">首  页</a></li>
<li><a href="introduce.html">简  介</a></li>
<li><a href="sustain.html">支  持</a></li>
<li><a href="contact.html">联  系</a></li>
</ul><br/>
</div>
<div id="content">
<div id="side"><br />
<%
if(rs.EOF)document.write('
<font style="font-style:italic" color="#FFE423" size="+2">登录</font><br />
<form action="intr_photo.asp" method="get" id="entry_check">
<p><label>用户名:</label><input name="name" type="text" class="text" /></p>
<p><label>密    码:</label><input name="password" type="password" class="text" /></p>
<input name="submit" type="button" value="注册" onclick="login()"/>
<input name="submit" type="button" value="登录" />
</form>')
else document.write("<font style='font-style:italic' color='#FFE423' size='+2'>"+name_history+",您已经登陆</font><br />");
rs.close();
rs = null;
conn.close();
conn = null;
%>

<div id="introduce">
<ul>
<li><a href="introduce.html">引力波宗旨</a></li>
<li><a href="intr_theory.html">目的与途径</a></li>
<li><a href="intr_photo.html">图片欣赏</a>
<ul>
<li onclick="photo_change(-2)"><a>一个故事</a></li>
<li onclick="photo_change(0)"><a>仰望星空</a></li>
</ul>
</li>
</ul>
<div class="hex_basic" onclick="photo_change(-1)">
<div class="hex"></div>
</div>
<div class="hex_basic" onclick="photo_change(1)">
<div class="hex"></div>
</div>
</div>
</div>
<div id="main" style="text-align:center">
<div id="left" onclick="photo_change(-1)"> </div>
<img src="../photos/introduce/1.jpg" width="581px" height="400px" name="middle" title="曾经让月光窥见我的心房"/>
<div id="right" onclick="photo_change(1)"> </div>
</div>
</div>
<div id="bottom">
<img src="../photos/div-spred.jpg" />
Copyright © UFO-PC.com,2012<br/>
偶然想起,曾暗暗许诺一起去看星星<br/>
<font size="-3">创意源于王晋康小说《决战美杜莎》</font>
</div>
</div>
</body>
</html>
...全文
119 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
文盲老顾 2012-05-06
  • 打赏
  • 举报
回复
我现在确信,hookee 玩找茬类游戏绝对是高手。。。
hookee 2012-05-06
  • 打赏
  • 举报
回复
这句语法不对,少括号
Response.Cookies("user_name_load")=Request.Form("password");
--------------
if(rs.EOF)document.write('...
else document.write...
asp是服务器端代码,服务端没有document对象,document是浏览器端的对象
用 response.write("xxxx");
ufo5260987423 2012-05-06
  • 打赏
  • 举报
回复
谢谢……爱死你们了

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧