Hi,
I have a basic CDONTS form. On this form it pulls the users IP address and NTUSER Name. Now I set my web folder to not allow anonymous access.. soo if the user is not logged on to the network then they would get the windows authorization connection screen.
What I want to do is.. IF the user is not logged in .. then a pop up screen comes up giving instructions to that user.. then a link or a button the user clicks thats brings them to that activation connection screen to login.
now if the user is logged on to the network.. then this screen should not appear.. and that user would go directly into the page.
any help would be appreciated.. THANKS!
Code:
<%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 4.0">
<TITLE>Thank you!</TITLE>
<%
Sub Write(strWriteThis)
response.write(strWriteThis & "<br>")
end sub
%>
</HEAD>
<BODY>
<%
Dim myCDONTSMail
Dim strFrom
Dim strTo
Dim strSubject
Dim strMessage
Dim lngImportance
strFrom="test@test.com"
strTo="test@test.com"
strSubject = "Authorization Form - " & UCASE(Request.Form("Field3"))
strSpaces = Space(40)
strBody= strSpaces & "Sabine River Works" & chr(10) & _
strSpaces & "SRW Security" & chr(10) & _
strSpaces & "SRW Vehicle Authorization" & chr(10) & chr(10) & _
"1. Field1: " & UCASE(Request.Form("Field1")) & chr(10) & chr(10) & _
"2. Field2: " & UCASE(Request.Form("Field2")) & chr(10) & chr(10) & _
"3. Field3: " & UCASE((Request.Form("Field3"))) & chr(10) & chr(10) & _
"Data sent from workstation: " & Request.ServerVariables("REMOTE_ADDR") & chr(10) & chr(10) & _
"Domain/Username: " & UCASE(Request.ServerVariables("LOGON_USER"))
lngImportance = request.form("optImportance")
Set myCDONTSMail = CreateObject("CDONTS.NewMail")
myCDONTSMail.MailFormat = 1
myCDONTSMail.BodyFormat = 1
myCDONTSMail.Send strFrom,strTo,strSubject,strBody,lngImportance
Set myCDONTSMail = Nothing
Write "Thank you!"
%>
</BODY>
</HTML>