K
Kris
Dear all,
I know this question has been discussed in another topic but I feel
that I lack a little bit of knowledge to grasp what was said there.
My problem is as follows :
As a trainer in a company, I launched a webform asking people to log
in before they can access the needed training. Nothing fancy and just
there for monitoring who comes in and when. Problem is that some
"nice-guys" enter who knows what - because that's fun. Can I
counteract this by having the ASP form sending me also the IP address
from the PC ? And where do I have to add these lines ?
This is the code I use in my ASP form :
<%
Dim MyBody
Dim MyCDONTSMail
Dim Name
Dim Team
Dim Subject
Dim Comment
%>
<%
Name = Request.Form("Name")
Team = Request.Form("Team")
Subject = Request.Form("Subject")
Comment = Request.Form("Comment")
%>
<%
Set MyCDONTSMail = CreateObject("CDONTS.NewMail")
MyCDONTSMail.From= "XX@xx"
MyCDONTSMail.To= "xx@xx"
MyCDONTSMail.Subject="xxxxxxxx"
Mybody = "This mail has been sent by the automated customer
feedback engine" & vbCrlF
Mybody = Mybody & "Please find enclosed the data as filled in" &
vbCrlF & vbCrlF
MyBody = MyBody & "Name: " & Name & vbCrlF
MyBody = MyBody & "Team: " & Team & vbCrlF
MyBody = MyBody & "Subject: " & Subject & vbCrlF
MyBody = MyBody & "Comment: " & Comment & vbCrlF & vbCrlF &
vbCrlF
MyCDONTSMail.Body= MyBody
MyCDONTSMail.Send
Response.Write "Thank you, " & Name & ", for following the
WebTraining."
Response.Redirect("xxx.htm")
set MyCDONTSMail=nothing
%>
All help is highly appreciated. Please do understand that I'm new at
this ASP thing and that it might take some time for me to understand.
Br,
Kris
I know this question has been discussed in another topic but I feel
that I lack a little bit of knowledge to grasp what was said there.
My problem is as follows :
As a trainer in a company, I launched a webform asking people to log
in before they can access the needed training. Nothing fancy and just
there for monitoring who comes in and when. Problem is that some
"nice-guys" enter who knows what - because that's fun. Can I
counteract this by having the ASP form sending me also the IP address
from the PC ? And where do I have to add these lines ?
This is the code I use in my ASP form :
<%
Dim MyBody
Dim MyCDONTSMail
Dim Name
Dim Team
Dim Subject
Dim Comment
%>
<%
Name = Request.Form("Name")
Team = Request.Form("Team")
Subject = Request.Form("Subject")
Comment = Request.Form("Comment")
%>
<%
Set MyCDONTSMail = CreateObject("CDONTS.NewMail")
MyCDONTSMail.From= "XX@xx"
MyCDONTSMail.To= "xx@xx"
MyCDONTSMail.Subject="xxxxxxxx"
Mybody = "This mail has been sent by the automated customer
feedback engine" & vbCrlF
Mybody = Mybody & "Please find enclosed the data as filled in" &
vbCrlF & vbCrlF
MyBody = MyBody & "Name: " & Name & vbCrlF
MyBody = MyBody & "Team: " & Team & vbCrlF
MyBody = MyBody & "Subject: " & Subject & vbCrlF
MyBody = MyBody & "Comment: " & Comment & vbCrlF & vbCrlF &
vbCrlF
MyCDONTSMail.Body= MyBody
MyCDONTSMail.Send
Response.Write "Thank you, " & Name & ", for following the
WebTraining."
Response.Redirect("xxx.htm")
set MyCDONTSMail=nothing
%>
All help is highly appreciated. Please do understand that I'm new at
this ASP thing and that it might take some time for me to understand.
Br,
Kris