我有一段代码,想请教如何添加代码, 将每次的查询内容自动记录到TXT里<%@ CODEPAGE=65001 %>
<% Response.CodePage=65001%>
<% Response.Charset="UTF-8" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查询</title>
<meta name="keywords" content="查询" />
<style type="text/css">
h1{background-color:#0099CC;color:white;line-height:48px;margin:0px auto;text-align:center;}
div{border: 1px solid #999;}
#result{text-align:center;padding-top:16px;margin:16px;color:red;font-size:16px;}
#footer{line-height:150%;text-align:center;padding: 8px 0;}
</style>
<script type="text/javascript" src="js/ajax.js"></script>
<body>
<form action="jieguo.asp" method="post" name="form1" target="_parent">
<div align="center" style="width:730px;">
<h1>信 息 查 询</h1><br>
请输入查询编码:
<input name="noid" type="text" maxlength="18" id="noid"/>
<input type="submit" name="button" value=" 查 询 ">
<input type="button" name="button2" value=" 重 置 " onClick="javascript:document.form1.reset();">
<br>
<span id="result"></span>
<p> </p>
</div>
</form>
</body>
</html>
<% Response.CodePage=65001%>
<% Response.Charset="UTF-8" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查询</title>
<meta name="keywords" content="查询" />
<style type="text/css">
h1{background-color:#0099CC;color:white;line-height:48px;margin:0px auto;text-align:center;}
div{border: 1px solid #999;}
#result{text-align:center;padding-top:16px;margin:16px;color:red;font-size:16px;}
#footer{line-height:150%;text-align:center;padding: 8px 0;}
</style>
<script type="text/javascript" src="js/ajax.js"></script>
<body>
<form action="jieguo.asp" method="post" name="form1" target="_parent">
<div align="center" style="width:730px;">
<h1>信 息 查 询</h1><br>
请输入查询编码:
<input name="noid" type="text" maxlength="18" id="noid"/>
<input type="submit" name="button" value=" 查 询 ">
<input type="button" name="button2" value=" 重 置 " onClick="javascript:document.form1.reset();">
<br>
<span id="result"></span>
<p> </p>
</div>
</form>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货