Discussion Locked
0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I created a htm form which sends it results to a comma delimited text file. I need to get information using the QueryString function so I renamed the page from htm to asp and added the functionality. Now when I click submit I do not get the results page and no data is written to the result file. What do I need to do to get the submit to write to the result file with an asp page?
4 replies
by keith.hall1
You keep the original form as html and post the form to an asp file e.g.
by keith.hall1
BTW you'll need to use the filesystem object to write to file
'Create FileSytemObject Component
Set ScriptObject = Server.CreateObject("Scripting.FileSystemObject")
'Create and Write to a File
filename = "file.csv"
pathEnd = Len(Server.mappath(Request.ServerVariables("PATH_INFO")))
Set MyFile = ScriptObject.CreateTextFile(Left(Server.mappath(Request.ServerVariables("PATH_INFO")),pathEnd)& filename)
MyFile.Write "stuff"
MyFile.Close
by zalog
Poster rated this answer
by zalog
This question was closed by the author
This discussion is closed to new replies.
Trending Software posts
Sort by Trending
1 helpful
1 reply
Question Unanswered
How Are Teams Testing AI-Generated Code Before Production?
0 helpful
0 replies
0 helpful
5 replies
0 helpful
20 replies
Discussion
Is There any Reverse Video Search Tool
0 helpful
8 replies