I have this FSO script at the bottom of a records.asp page and it does create the file but not accurately because I need it to reference the page (records.asp) with the posted form data from the referring page included.
I have tried a couple of server variables but these just seem to make the page hang. any ideas?
<%
strURL = "
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP"
objXMLHTTP.Open "GET", strURL, false
objXMLHTTP.Send
lStrContent = objXMLHTTP.responseText
Set objXMLHTTP = Nothing
lStrPath = Server.MapPath("\records"
& "\"
lStrFileName = replace(date,"/","_"
& "_help.html"
Set objFSO = Server.CreateObject ("Scripting.FileSystemObject"
Set lStrFileCreate = objFSO.CreateTextFile(lStrPath & lStrFileName, true)
lStrFileCreate.WriteLine(lStrContent)
lStrFileCreate.Close
Set objFSO = Nothing
%>
thanks in advance
"Away from the actual ... everything is virtual"
I have tried a couple of server variables but these just seem to make the page hang. any ideas?
<%
strURL = "
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP"
objXMLHTTP.Open "GET", strURL, false
objXMLHTTP.Send
lStrContent = objXMLHTTP.responseText
Set objXMLHTTP = Nothing
lStrPath = Server.MapPath("\records"
lStrFileName = replace(date,"/","_"
Set objFSO = Server.CreateObject ("Scripting.FileSystemObject"
Set lStrFileCreate = objFSO.CreateTextFile(lStrPath & lStrFileName, true)
lStrFileCreate.WriteLine(lStrContent)
lStrFileCreate.Close
Set objFSO = Nothing
%>
thanks in advance
"Away from the actual ... everything is virtual"