帮忙看看我写的一个练习小程序什么地方错了,不能在服务器上运行

guolirong 2003-08-25 04:36:17
我刚开始学ASP拜托了
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<meta name="generator" content="microsoft frontpage 4.0>
<meta name="progid" content=frontpage.editor.documet">
<title>编故事主页</title>
</head>
<body >
<center>
<h1>
<font color="#aaffaa">
欢迎你来编故事
</font>
<h1>
<h3>
<hr>
<a href="submitstory.asp">编写故事</a>
<p>
<a href="browsestory.asp">浏览故事</a>
</h3>
<hr>
</center>
</body>
</html>

<% response.buffer=true %>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<meta name="generator" content="microsoft frontpage 4.0>
<meta name="progid" content=frontpage.editor.documet">
<title>编个小小故事</title>
</head>
<body bgcolor="#aaffbb">
<form action"" method="post">
<table border=0>
<tr>
<td>姓名:
<td><input type="text" size="20" name="name">
</tr>
<tr>
<td>EMAIL:
<TD><INPUT TYPE="TEXT" SIZE"56" NAME="EMAIL">
</TR>
<TR VALIGN=TOP>
<td>小故事:
<td><textarea name="story" rows="8" cols="56">
</textarea>
</tr>
</table>
<center>
<input type=submit value="提交">
</form>
</body>
</html>
<%
story=request("story")
name=request("name")
email=request("email")
if story<>"" and name<>"" and emil<>"" then
set myfs=server.createobject("scripting.filesystemobject")
set mytf=myfs.opentextfile("258.txt",8,ture)
nextline="<" & name & "|" & email & "|" &story & ">"
mytf.writeline(nextline)
mytf.close
end if
%>


<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<meta name="generator" content="microsoft frontpage 4.0>
<meta name="progid" content=frontpage.editor.documet">
<title>浏览小故事</title>
</head>
<body>
<%
set myfs=server.createobject("scripting.filesystemobject")
if myfs.fileexists("258.txt") then
set mytf=myfs.opentextfile("258.txt",1)
while not mytf.atendofstream
text=mytf.readline
response.write("  " & text)
wend
mytf.close
else
%>
<hr>
<h3>
搜索不到故事!
</h3>
</hr>
<%
end if
%>
</body>
</html>
...全文
96 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
liujun999999 2003-08-26
  • 打赏
  • 举报
回复
<form action="提交到哪个文件啊" method="post">
ylm2003 2003-08-26
  • 打赏
  • 举报
回复
<form action="处理数据的asp文件" method="post">
guolirong 2003-08-26
  • 打赏
  • 举报
回复
呵呵谢谢大家了,这个我改好了,但还是不行,我写好故事但最后还不能浏览

www.gaowenxian.com/asplianxi/story.asp
我把这个放在这个网站上了
aloxy 2003-08-26
  • 打赏
  • 举报
回复
<form action="处理数据的asp文件" method="post">
freetaiger 2003-08-25
  • 打赏
  • 举报
回复
<title>编个小小故事</title>
</head>
<body bgcolor="#aaffbb">
<form action"" method="post">

这一段中的action后面要有提交到哪个文件中去的路径及文件名
另外,以后发贴子最好把文件分开标记一下
ttt2 2003-08-25
  • 打赏
  • 举报
回复
<form action="" method="post">

28,391

社区成员

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

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