Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Form Variables Lost After Captcha Verific
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedForm Variables Lost After Captcha Verific

 Post Reply Post Reply
Author
Tomcat View Drop Down
Newbie
Newbie


Joined: 30 October 2006
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tomcat Quote  Post ReplyReply Direct Link To This Post Topic: Form Variables Lost After Captcha Verific
    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.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Tomcat View Drop Down
Newbie
Newbie


Joined: 30 October 2006
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tomcat Quote  Post ReplyReply Direct Link To This Post 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!
 
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.