Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Webform with validator
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Webform with validator

 Post Reply Post Reply
Author
FrankNicklin View Drop Down
Newbie
Newbie


Joined: 19 October 2022
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote FrankNicklin Quote  Post ReplyReply Direct Link To This Post Topic: Webform with validator
    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">
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Poole
Status: Offline
Points: 9740
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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. 
Back to Top
FrankNicklin View Drop Down
Newbie
Newbie


Joined: 19 October 2022
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote FrankNicklin Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Poole
Status: Offline
Points: 9740
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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;

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.05
Copyright ©2001-2022 Web Wiz Ltd.


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

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 unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

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