why isnt this working

Results 1 to 2 of 2

Thread: why isnt this working

  1. #1
    Join Date
    Dec 1969

    Default why isnt this working

    I am opening a text file in a form, then making changes, submitting to a page with this:<BR><BR>Dim fso, MyFile, strLine<BR>Set fso = CreateObject("Scripting.FileSystemObject")<BR>Set MyFile = fso.CreateTextFile("c:Inetpubwwwroot estfoo.txt", True)<BR>strLine = Request.Form("topcont")<BR>MyFile.WriteLine(strLin e)<BR>MyFile.Close<BR><BR>but its not grabbing the lines from the form textarea named "topcont", its just replacing with empty , is there another form of WriteLine that would work with this? Should I use regexp&#039;s to write this out?

  2. #2
    Join Date
    Dec 1969

    Default RE: why isnt this working

    Did you specify METHOD=POST on your form?<BR><BR>If you commented all the FSO portions, do you see nothing if you do a response.write?

Posting Permissions

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