easy log file

Results 1 to 2 of 2

Thread: easy log file

  1. #1
    Join Date
    Dec 1969

    Default easy log file

    does anyone have a code snippet that just logs the entries of a form to a file? ive been trying a few different ways but so far its not working, and ill take any help at this point..<BR><BR>peter

  2. #2
    Join Date
    Dec 1969

    Default A faq on this? Oh, well, here you go...

    Change it to Request.QueryString if you are using the GET method:<BR><BR>Dim sFLD<BR>Dim oFS: Set oFS = CreateObject("Scripting.FileSystemObject")<BR>Dim oTS: Set oTS = oFS.OpenTextFile("C:License_Institution.txt", 8, True)<BR> For Each sFLD In Request.Form<BR> oTS.Write sFLD & ": " & Request.Form(sFLD) & vbCrLf<BR> Next<BR> oTS.Close<BR>Set oTS = Nothing<BR>Set oFS = Nothing<BR><BR>-Doug

Posting Permissions

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