Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Load New Code
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedLoad New Code

 Post Reply Post Reply
Author
sarb View Drop Down
Newbie
Newbie


Joined: 28 September 2009
Location: Texas
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote sarb Quote  Post ReplyReply Direct Link To This Post Topic: Load New Code
    Posted: 28 September 2009 at 11:30pm
I just set up a page using the Captcha code.  I am not a programmer by any means, so this has been a very slow process for me Smile.

I notice when the page with the form opens, it has the following text next to the image box
"Load New Code".  I'm not really following why that is there.  Does the client filling out the form have the option to change the code in the box at his discretion and if so why is that...

the page can be viewed at:

http://www.oaknoll.com/hawkeye_birthday_page2.asp

This is a experimental page.  I will put the code on the real page after I figure out wheather I am doing this correctly or not.

Thanks,
sarb
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 29 September 2009 at 9:01am
The Load New Code option is there in case the user can not read the CAPTCHA code they can create a new one.
Back to Top
sarb View Drop Down
Newbie
Newbie


Joined: 28 September 2009
Location: Texas
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote sarb Quote  Post ReplyReply Direct Link To This Post Posted: 29 September 2009 at 2:26pm
Is there a way to remove that if my client doesn't want it to appear there?

Thanks,
Sarb
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 29 September 2009 at 3:12pm
You could edit the CAPTCHA_form_inc.asp and remove the link.
Back to Top
sarb View Drop Down
Newbie
Newbie


Joined: 28 September 2009
Location: Texas
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote sarb Quote  Post ReplyReply Direct Link To This Post Posted: 29 September 2009 at 8:55pm
Is there a way to validate this code so that it won't submit if this captcha box isn't filled out?  I see there is a code in php, but my clients server won't work with that format.   Needs to be ASP
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 30 September 2009 at 9:48am
PHP code is server side so the page would still submit.

What you need to do to prevent the form form submitting if the CAPTCHA textbox is empty is to use JavaScript on the client side.

If you are already using JavaScript to detect if the other form elements are filled in then you just need to add to this some JavaScript to also detect if the textbox has a value. The textbox is called 'securityCode'. The code would like like below:-

<script  language="JavaScript" type="text/javascript">
<!--
function CheckForm () {

var errorMsg = "";

if (document.frmEnquiry.securityCode.value == "") {
errorMsg += "\n\tSecurity Code \t- Enter the security code exactly as you see it in the image";
}

if (errorMsg != ""){
msg = "______________________________________________________________\n\n";
msg += "Your enquiry has not been sent because there are problem(s) with the form.\n";
msg += "Please correct the problem(s) and re-submit the form.\n";
msg += "______________________________________________________________\n\n";
msg += "The following field(s) need to be corrected: -\n";

errorMsg += alert(msg + errorMsg + "\n\n");
return false;
}

return true;
}
// -->
</script>


You then add the following to your <form...... tag so that the javascript function is called when the form is submitted:-

onsubmit="return CheckForm();"

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.