Re: asp script for forms result by jeff
jeff
Wed Jun 23 10:22:10 CDT 2004
On Tue, 22 Jun 2004 20:15:54 -0700, "shinyd"
<anonymous@discussions.microsoft.com> wrote:
>I can actually have it all on 1 page... the problem is the
>end result with the naming of the text file .... Should
>create an individual file named %varaible%.txt
You mean like:
strName = Request.Form("Name")
FileName = strName & ".txt"
Set fso = CreateObject("Scripting.FileSystemObject")
Set TextFile = filesys.CreateTextFile(FileName, True)
TextFile.WriteLine("This is a line of text")
TextFile.Close
Jeff
>Thanks
>Dave
>
>>-----Original Message-----
>>On Tue, 22 Jun 2004 15:45:11 -0700, "shinyd"
>><anonymous@discussions.microsoft.com> wrote:
>>
>>>I am struggling to come up with a way to save a forms'
>>>results, to a text file, but the name of the text file
>>>comes from the input of a user name on another forms...
>>>
>>>ex. john doe enters pg1 & enters his name in a space on
>>>the page (form) . this links him to the next page,
>>>pge_form. I need the results of page_form to be named
>>>johndoe.txt
>>
>>Where is your problem? Is it passing the results of the
>first form
>>through the second? Or creating a new named text file?
>And why must
>>it be two forms? Using POST or GET?
>>
>>Jeff
>>.
>>