フォームからテキスト ファイルにテキストを送信するためにオンライン ソースから収集できるコードをいくつか書きました。おそらくフォルダパスと関係がありますが、私にはわかりません。これに関する方向性を探しているだけです。
私の ASP フォーム コードは次のとおりです。
<form method="get" action="simpleform.asp">
<br/>
<i>Please include your initials and date with the bug report</i>
<br/>
<br/>
<b>Bug</b> <input type="text" name="bug">
<input type="submit" value="Submit Bug Report">
</form>
<br/>
テキストをファイルにコミットする ASP コードは次のとおりです。
<html>
<body>
Thanks for the report! To report another bug <a href="BugReportPage.asp">click here</a>.
<%
Dim idea
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.OpenTextFile("G:\General\EM_Wiki\WikiBug\bugreport.txt",8,true)
idea= Request.QueryString("bug")
f.WriteLine(bug)
f.Close
set f=nothing
set fs=nothing
%>
</body>
</html>
誰かにとって意味があり、正しい方向に私を向けることができることを願っています, ありがとう!