View Full Version : export form to tekst file on webserver

02-27-2006, 01:48 PM

i look for a script that can export the output from a script to a text file on the server. but the the filename must be equel to the user that has logged in to the form.

by example andre logged into to the form then the filename must be andre.txt

here is how the form output looks like

invoer 1 = <% Response.Write x_invoer1 %><br>
invoer 2 = <% Response.Write x_invoer2 %><br>
invoer 3 = <% Response.Write x_invoer3 %><br>
invoer 4 = <% Response.Write x_invoer4 %><br>
invoer 5 = <% Response.Write x_invoer5 %><br>
invoer 6 = <% Response.Write x_invoer6 %><br>
invoer 7 = <% Response.Write x_invoer7 %><br>
invoer 8 = <% Response.Write x_invoer8 %><br>
invoer 9 = <% Response.Write x_invoer9 %><br>

if some know how to create this. plz help :confused:

gr. Eltjo

02-27-2006, 02:19 PM
If you have a login then you can get the username from a variable. Usually this would be a Session variable.

You can use the FileSystem object to write to a file.


set f=fs.CreateTextFile("c:\test.txt",true)

You can replace the name with the session variable.

02-28-2006, 12:10 PM
:thumbsup: thanx for the help....:thumbsup: