% option explicit %>
<% Response.buffer = true %>
<%
Dim ApplicationName
ApplicationName = "RSWebEdit"
%>
<%
Function IsSetAndFilled(a)
if ( not IsSet(Request.Form(a) ) ) Then
IsSetAndFilled = false
Exit Function
end if
if ( Len(Request.Form(a)) = 0 ) Then
IsSetAndFilled = false
Exit Function
end if
IsSetAndFilled = true
End Function
Dim Message
Message = ""
Dim Retry1
Retry1 = true
if Request.ServerVariables("REQUEST_METHOD") = "POST" then
Retry1 = false
if not IsSetAndFilled("Body" ) Then
Message = Message + "
Body is empty"
Retry1 = true
end if
if not IsSetAndFilled("Email" ) Then
Message = Message + "
Email is empty"
Retry1 = true
end if
if not IsSetAndFilled("Name" ) Then
Message = Message + "
Name is empty"
Retry1 = true
end if
Dim URL
URL = ""
if ( IsSet(Request.Form("URL") ) ) Then
URL = Request.Form( "URL")
end if
if not retry1 then
Dim HTTPHelper
set HTTPHelper = CreateObject("RSWebHelper.RSWebHelper1")
Dim resultString
resultString = HTTPHelper.FetchURL("http://protectwebform.com/verify/29344_jth61p5r3z9q_" + Request.ServerVariables("UserHostAddress") + "/" + Request.Form("protectwebformcode") + "/")
If InStr(resultString,"
<%=Message%>
<%if Retry1 Then %> <%end if %>