I have the following code.
<%
dim element
dim filesys, filetxt
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Set filesys = CreateObject("Scripting.FileSystemObject"
Set filetxt = filesys.OpenTextFile("form.txt", ForAppending, True)
for each element in request.form
filetxt.WriteLine element + ","
next
filetxt.Close
%>
I want to read in all the html form data and append it to a flat text file. Unfortunately all this does is write the names of my fields and not the values in the fields. I want it to write the names of the fields and then the values. Help me please.
Thanks,
Josh
<%
dim element
dim filesys, filetxt
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Set filesys = CreateObject("Scripting.FileSystemObject"
Set filetxt = filesys.OpenTextFile("form.txt", ForAppending, True)
for each element in request.form
filetxt.WriteLine element + ","
next
filetxt.Close
%>
I want to read in all the html form data and append it to a flat text file. Unfortunately all this does is write the names of my fields and not the values in the fields. I want it to write the names of the fields and then the values. Help me please.
Thanks,
Josh