ASP Form Error...Help!

Results 1 to 2 of 2

Thread: ASP Form Error...Help!

  1. #1
    Join Date
    Dec 1969

    Default ASP Form Error...Help!

    The following ASP saves form data to a file, but I get an error when the page loads:<BR><BR>Dim TheFilePath<BR>Dim TheFile<BR>strPagesize = Request.Form("pagesize")<BR>strOtherpagesize = Request.Form("textpagesize") <BR>strQuantity = Request.Form("quantity") <BR>TheFilePath=" est.txt"<BR>Set FSO = Server.CreateObject("scripting.FileSystemObject")< BR>Set TheFile = FSO.CreateTextFile(TheFilePath, True)<BR>&#039;************ beginning of the file body *********** <BR>TheFile.Write "Page size: "<BR>TheFile.Writeline strPagesize<BR>TheFile.Write "Other page size: " <BR>TheFile.Writeline strOtherpagesize<BR>TheFile.Write "Quantity: "<BR>TheFile.Writeline strQuantity<BR>&#039;************ end of the file body *****************<BR>TheFile.close<BR>Set FSO = nothing<BR><BR>ERROR<BR>%&#062;Microsoft VBScript runtime error &#039;800a0046&#039; <BR><BR>Permission denied <BR><BR>The error points to the line:<BR>Set TheFile = FSO.CreateTextFile(TheFilePath, True)<BR><BR>Why?<BR><BR>TIA<BR>Andrew<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: ASP Form Error...Help!

    I would guess that you don&#039;t have write access to that directory.<BR><BR>Hence "Permission Denied" :)<BR><BR>Craig.

Posting Permissions

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