怎么样在一个页面中的文本框填入内容,点确定后,把这个内容写入另一个文件(html、asp、txt)均可。
------解决方案--------------------
input.asp
- HTML code
<form method='post' action='save.asp'> <input type="text" name="ct"/><input type='submit' value='提交'/> </form>
------解决方案--------------------
- VBScript code
<%
dim filesys, filetxt
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Set filesys = CreateObject("Scripting.FileSystemObject")
Set filetxt = filesys.OpenTextFile("somefile.txt", ForAppending, True)
filetxt.WriteLine("Your text goes here.")
filetxt.Close
%>
------解决方案--------------------
参考#2的。是追加内容的,1#是重写原文件