ASP制作简单留言本的问题,通过写入.txt文件存储数据实现不了。各位大哥帮忙看看,谢谢啦!
通过两个文件来实现,message.asp文件代码如下:
<%@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>
<style type="text/css">
<!--
body {
background-color: #ADD8E6;
}
-->
</style></head>
<body>
<form id="form1" name="form1" method="post" action="messagere.asp">
<p align="center">简单留言本</p>
<table width="493" height="212" border="1" align="center">
<tr>
<td width="120">姓名</td>
<td width="357"><input name="name" value="" /></td>
</tr>
<tr>
<td>主题</td>
<td><input name="title" value="" /></td>
</tr>
<tr>
<td height="84">留言</td>
<td><textarea name="word" id="textarea" cols="45" rows="5" ></textarea></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="button" id="button" value="提交" />
<input type="reset" name="button2" id="button2" value="重置" />
<a href="message.htm">查看以前的留言</a></td>
</tr>
</table>
<p> </p>
</form>
</body>
</html>