Double Captcha?
Not sure if I'm explaining this correctly but I do not need to have 2 Captchas on my forms. All I want is either the Image Captcha or the Secret Answer Captcha. How do I change this?
Not sure if I'm explaining this correctly but I do not need to have 2 Captchas on my forms. All I want is either the Image Captcha or the Secret Answer Captcha. How do I change this?
Hi
Im referring to one of the unmodified SA wizard pages (registration.php and the security answer field) in this example but the principle is the same.
You need to remove the following code from the page:
Spry validation code associated with that field located at the bottom of your page around row 605:
var Security_Answer_Spry = new Spry.Widget.ValidationTextField("Security_Answer_Spry", "none",{validateOn:["blur"]});
Then remove the whole div containing the form field starting with the code around row 552:
<div class="lineGroup">
<label for="Security_Answer_2" class="sublabel" > </label>
Ending with the closing div tag around row 573 just before the <span class="buttonFieldGroup" >
Finally you have to remove the Server Validation code associated with that field around row 26:
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Security_Answer"])?$_POST["Security_Answer"]:"")) . "",((isset($_SESSION["random_answer"]))?strtolower($_SESSION["random_answer"]):"") . "",true,14);
This should accomplish what you want!
Regards,
Martin J.
You're welcome! Glad I could help!
Cheers,
Martin
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.