Print Page | Close Window

Webform with validator

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=31753
Printed Date: 27 March 2026 at 9:27pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Webform with validator
Posted By: FrankNicklin
Subject: Webform with validator
Date Posted: 19 October 2022 at 10:04am
HI

I have a webform that uses Javascript to validate the fields. Once the required fields are filled in then the form is submitted to sendmail.asp to send the email.

I'm trying to incorporate the Web Wiz Captcha within the form page rather than redirect to the process page but cannot get Javascript to validate the Captcha value.

I have pasted the code from your process_form.asp file to my contact form page but cannot get it to work.

My form tag is <form action="sendmail.asp" method="POST" onsubmit="return Form1_Validator(this)" name="Form1">



Replies:
Posted By: WebWiz-Bruce
Date Posted: 19 October 2022 at 4:01pm
The CAPTCHA value cannot be validated using JavaScript as the response needs to be sent to the server where the value is compared to the CAPTCHA value held in the web servers memory.

If it was processed client side in JavaScript then it would be easy for a bot to get around the CAPTCHA. 


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: FrankNicklin
Date Posted: 20 October 2022 at 9:17am
I dont want to incorporate the validation in to Javascript but rather have the validation on the same page after the Submit rather than take the user to a new page showing the Captcha failure it would be better to display a message that the Captcha was wrong.


Posted By: WebWiz-Bruce
Date Posted: 21 October 2022 at 11:31am
You would need to submit the form back to the same page.

See the Advanced install documentation at the link below;

https://www.webwiz.net/web-wiz-captcha/kb/captcha-advanced-install.htm" rel="nofollow - https://www.webwiz.net/web-wiz-captcha/kb/captcha-advanced-install.htm


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



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