Replies Back to Article
Validation Message does not appear
sorry, but I don't understand WHERE I'm supposed to add this... I tried adding immediately after POST, I also tried adding at beginning of page, like this, neither worked. can you give a few more details for us newbies?
<!--#include file="ScriptLibrary/dmxReCAPTCHA.asp" -->
<%
Dim MM_editAction
MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
If (Request.QueryString <> "") Then
MM_editAction = MM_editAction & "?" & Server.HTMLEncode(Request.QueryString)
End If
' boolean to abort record edit
Dim MM_abortEdit
MM_abortEdit = false
%>
<%
' DMXzone reCAPTCHA 1.0.2
Dim theCAPTCHA
Set theCAPTCHA = new dmxReCAPTCHA
theCAPTCHA.PrivateKey = "6LcjZtASAAAAAACmiKjdx_SDOg_whXMFW2j9ZxSn"
theCAPTCHA.PublicKey = "6LcjZtASAAAAAI6DnNceNr7cvnt-k-skPINRiPF4"
theCAPTCHA.Construct
%>
<%
' fix for recap error
if Request.ServerVariables("REQUEST_METHOD") = "POST" then 'if form is submitted
If eval("vartype(MM_abortEdit)") = 0 or (Not MM_abortEdit) Then 'and validated
Response.Redirect "thank_you.asp" 'redirect to a new page
end if
end if
%>