Print Page | Close Window

Form Variables Lost After Captcha Verific

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz CAPTCHA
Forum Description: Support forum for the Web Wiz CAPTCHA security image.
URL: https://forums.webwiz.net/forum_posts.asp?TID=21951
Printed Date: 28 March 2026 at 5:31pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Form Variables Lost After Captcha Verific
Posted By: Tomcat
Subject: Form Variables Lost After Captcha Verific
Date Posted: 16 November 2006 at 8:16pm
I'm sorry that I'm such a newbie, but I was hoping this forum can offer me some help from kind techies.
 
I've got the Captcha apps to verify the security code, but my form inputs get lost and the email is sent with empty fields.  I don't understand what is happening.
 
The user input goes to FORM method=POST action="process_form.asp" file which contains the Captcha verifcation:
 
<!-- Include file for CAPTCHA form processing -->            
 <!-- #include file="CAPTCHA/CAPTCHA_process_form.asp" -->          
<%
 
If blnCAPTCHAcodeCorrect Then
  
  Response.Redirect("emailForm.asp")
 
Else
 
 Response.Write(" CAPTCHA code is NOT correct")
 Response.Write("<a href=""javascript:history.back(1)""> Click here to amend</a>")
 
End If
 
%>
 
It goes to the emailForm.asp file if correct which contains the code for CDONTS mail, but the variables are lost.
 
Can anyone help?  Thanks.


-------------
Tomcat



Replies:
Posted By: dpyers
Date Posted: 16 November 2006 at 9:01pm
The request variables aren't passed from script to script. They are only passed once. You need to either replace the response redirect in process_form with the code in emailform or put the captcha verification in emailform.

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: Tomcat
Date Posted: 16 November 2006 at 9:19pm
Hi -
 
I was finally able to figure out where to put the condition in my email processing file to get it to work.
 
Thanks so much for your response.  I find forums like these very helpful.  Most of the time my specific problem isn't already out there, but I learn in the process of reading the comments and problems programmers have and solutions they tried or succeeded in.
 
I don't do much ASP coding so I will always be a newbie.  A special thank you to the Web Wiz admin for allowing this site and the quick responses given so many times for such a busy guy!
 
 


-------------
Tomcat



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net