Re: forms to text files with asp
by "Jeff Pearson" <sales(at)webalchemy.on.ca>
|
Date: |
Wed, 8 Aug 2001 21:52:41 -0400 |
To: |
"HWG Languages" <hwg-languages(at)hwg.org> |
References: |
yahoo |
|
todo: View
Thread,
Original
|
|
Much appreciated to everyone who replied!
Jeff
Subject: Re: forms to text files with asp
> This should do what you need.
> <%
> Set Fso = Server.Createobject("Scripting.FileSystemObject")
> Set File =
> Fs.OpenTextFile(""frm_submitted_"&replace(formatdatetime(now(),3),"
> ","_")&".txt", 8, true)
>
> 'the following loops through the form and writes the name and value
> 'of each element to the file
> for each item in request.form
> File.Write item & ":" & request.form(item)& ","
> next
> 'the name and value pairs are colon(:) delimited.
> 'the elements are comma(,) delimited, as requested. This is very easy
> 'to change
> File.Close
> Set File = Nothing
> Set Fs = Nothing
%>
hth,
Andrej
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA