I wrote this simple little script that writes a few lines of code to an HTML file. When it's finished, I want it to redirect to another script, but instead it is printing the redirect statement to the screen. How can I make it simply complete the writing, then redirect properly? Must be the "set" statements, but I'm not sure how else to do them.
[tt]<% Set FileStreamObject = CreateObject("Scripting.FileSystemObject"
Set WriteStream=FileStreamObject.OpenTextFile("changed.html",8,True)
WriteStream.Write(now())
WriteStream.WriteLine("<BR>"
WriteStream.WriteLine("The following record has been changed or added:" + "<BR>"
WriteStream.WriteLine("Record ID: "+request.QueryString("ID"+"<BR>"
WriteStream.WriteLine("For: "+request.QueryString("Agency"+"<BR>"
WriteStream.Close%>
Response.Redirect("search_records.asp"
Response.End%>[/tt]
Don
don@ctagroup.org
Experienced in HTML, Perl, VBScript, PWS, IIS and Apache. Run OS/2 Warp 4, BeOS v5 and Windows NT (only when I have to!)
[tt]<% Set FileStreamObject = CreateObject("Scripting.FileSystemObject"
Set WriteStream=FileStreamObject.OpenTextFile("changed.html",8,True)
WriteStream.Write(now())
WriteStream.WriteLine("<BR>"
WriteStream.WriteLine("The following record has been changed or added:" + "<BR>"
WriteStream.WriteLine("Record ID: "+request.QueryString("ID"+"<BR>"
WriteStream.WriteLine("For: "+request.QueryString("Agency"+"<BR>"
WriteStream.Close%>
Response.Redirect("search_records.asp"
Response.End%>[/tt]
Don
don@ctagroup.org
Experienced in HTML, Perl, VBScript, PWS, IIS and Apache. Run OS/2 Warp 4, BeOS v5 and Windows NT (only when I have to!)