faqts : Computers : Programming : Languages : Asp : ASP/VBScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

9 of 13 people (69%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

how can i write a form submit request straight to a text file in asp 2

Jul 15th, 2003 02:23
Steven S, eddie khang,


'read data from the form
For i = 1 to Request.Form.Count
	formdata = formdata & Request.Form.Key(i) & "-" & 
Request.Form.Item(i) & vbCrLf
Next
'dump data in file
	set fs=Server.CreateObject("Scripting.FileSystemObject")
	set fname=fs.CreateTextFile("c:\form.txt",true)
	fname.Write(formdata)
	fname.Close
	set fname=nothing
	set fs=nothing



© 1999-2004 Synop Pty Ltd