Remove the Security Question
Good morning,
I like to remove Security Question from the Contact Us page.
thanks for reading....advice please
Good morning,
I like to remove Security Question from the Contact Us page.
thanks for reading....advice please
on the contact us page, delete the following code from line 173L
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "none", {validateOn:["blur"]});
line 140 - 157:
<div class="text"><?php require_once("WA_ValidationToolkit/WAVT_CaptchaSecurityQuestion.php"); ?></div>
<p>
<label for="Security_question">Security Question:</label>
<span id="sprytextfield4">
<input name="Security_question" type="text" class="inputValue" id="Security_question" onBlur="if (document.getElementById('securityServerError')) document.getElementById('securityServerError').style.display='none'" maxlength="40" />
<span class="textfieldRequiredMsg">A value is required.</span>
<?php
if (ValidatedField("contact","contact")) {
if ((strpos((",".ValidatedField("contact","contact").","), "," . "5" . ",") !== false || "5" == "")) {
if (!(false)) {
?>
<span id="securityServerError" class="textfieldServerError">Your answer was not correct.</span>
<?php //WAFV_Conditional contact.php contact(5:)
}
}
}?>
</span>
</p>
and line 21:
$WAFV_Errors .= WAValidateLE(((isset($_POST["Security_code"]))?strtolower($_POST["Security_question"]):"") . "",((isset($_SESSION["random_answer"]))?$_SESSION["random_answer"]:"") . "",true,5);
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.