%
Option Explicit
Response.Buffer = False
Dim strValidate
If Request("action") = "Download" Then
Dim bValidate
bValidate = True
If Request("name")="" Then
strValidate = "
Please enter your name"
bValidate = False
End If
If Request("email")="" Then
strValidate = "
Please enter your email address"
bValidate = False
End If
If Request("email") <> Request("email2") Then
strValidate = "
Please enter the same email address"
bValidate = False
End If
If bValidate Then
Dim fso, f
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile( Server.MapPath("dlinfo.txt"), 8, True)
f.WriteLine "*** Download Information: " & CStr(Now())
Dim t
For t = 1 To Request.Form.Count
f.WriteLine Request.Form.Key(t) & ": " & Request.Form.Item(t)
Next
f.Close
Response.Redirect("/downloads/OpMailSetup.exe")
End If
End If
%>