Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML forms data to flat file

Status
Not open for further replies.

jvande

MIS
Jun 6, 2001
115
US
I have the following code.
<%
dim element
dim filesys, filetxt
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Set filesys = CreateObject(&quot;Scripting.FileSystemObject&quot;)
Set filetxt = filesys.OpenTextFile(&quot;form.txt&quot;, ForAppending, True)
for each element in request.form
filetxt.WriteLine element + &quot;,&quot;
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top