I am trying to capture form values and insert them into a .txt file on the server. I thought I was on the right track but nothing seems to be going into the file. Any suggestions on what to do?<BR><BR>Thanks
Here is the code...<BR><BR><%<BR> Dim fsoObject<BR> Dim filObject<BR> Dim strInputIntoFile<BR> Const ForAppending = 8<BR> Const TristateFalse = 0<BR> <BR> strName = Request.form("Name")<BR> strPassword = Request.form("Password")<BR> strEmail = Request.form("Email") <BR> <BR> strInputIntoFile = "test to see if works"<BR> <BR> Set fsoObject = Server.CreateObject("Scripting.FileSystemObject")< BR> Set filObject = fsoObject.GetFile("form.txt")<BR> <BR> filObject.OpenAsTextStream ForAppending, TristateFalse<BR> filObject.WriteLine strInputIntoFile<BR>%><BR><BR><BR>I think I am missing some things. I don't get an error but nothing shows up in the file!
Dim fso, tf <BR>Set fso = CreateObject("Scripting.FileSystemObject")<BR>Set tf = fso.CreateTextFile("c: estfile.txt", True)<BR>' Write a line with a newline character. <BR>tf.WriteLine("Testing 1, 2, 3.") <BR>' Write three newline characters to the file. <BR>tf.WriteBlankLines(3) <BR>' Write a line. <BR>tf.Write ("This is a test.") <BR>tf.Close<BR><BR><BR>this is a cut and paste job use this as a templete and code your page