怎么样在一个页面中的文本框填入内容,点确定后,把这个内容写入另一个文件(html、asp、txt)均可。
怎么样在一个页面中的文本框填入内容,点确定后,把这个内容写入另一个文件(html、asp、txt)均可。
[解决办法]
input.asp
<form method='post' action='save.asp'><input type="text" name="ct"/><input type='submit' value='提交'/></form>
[解决办法]
<%dim filesys, filetxtConst 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#是重写原文件