Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post export form to tekst file on webserver

    hello,

    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

    gr. Eltjo

  • #2
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

    http://www.w3schools.com/asp/met_write.asp

    Code:
    set f=fs.CreateTextFile("c:\test.txt",true)
    You can replace the name with the session variable.

  • #3
    New to the CF scene
    Join Date
    Feb 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanx for the help....


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •