close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Can't remove security question

Thread began 4/26/2011 7:05 pm by markf425338 | Last modified 4/28/2011 1:43 pm by Jason Byrnes | 1381 views | 5 replies |

markf425338

Can't remove security question

I have the contact form working ok. there are two glitches.

1) If 2 of us verify the captcha code and security question and we are certain we have it correct, the form will still return a "did not provide correct answer" message on random tries. This happens with some frequency. We are certain the answer and the capthcha code are correct but it gets rejected.

2) I have followed the instructions to remove the security question form contactus.php. I have gone through this several times. It seems straight forward and understandable. After I've removed the indicated sections of code and uploaded the new/revised contactus.php file, it loads ok but it won't display the thank you page or send the info to us.

Any ideas on how to make this work better? Thanks for any help.

Sign in to reply to this post

Jason ByrnesWebAssist

Can you send a copy of your page so I can examine the code and a link where i can try to reproduce the issue.

Sign in to reply to this post

markf425338

Here is a link to the form on the site.
contactus.php

I have attached a .txt version of the contactus.php file I'm using on the site. Please let me know if I can provide anything else. Thanks for your help!

Attached Files
contactus.txt
Sign in to reply to this post

Jason ByrnesWebAssist

I am not able to reproduce the problem with validation failing.

I just sent through 10 test messages without causing a validation failure.


to remove the security question, delete the following code blocks:
line 200:

php:
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "none", {validateOn:["blur"]});



line 157 - 174:

php:
<label for="Security_code" >

      <?php require_once("WA_ValidationToolkit/WAVT_CaptchaSecurityQuestion.php"); ?>
    </label>
    <br />
    <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">Your answer was not correct.</span></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(4:)
    
}
  }
}
?>
    <br />



line 18:

php:
$WAFV_Errors .= WAValidateLE(((isset($_POST["Security_question"]))?strtolower($_POST["Security_question"]):"") . "",((isset($_SESSION["random_answer"]))?strtolower($_SESSION["random_answer"]):"") . "",true,5);
Sign in to reply to this post

markf425338

Thank you Jason. I'm not sure why we were having the validation problem. The other person involved was getting the same trouble on his computer while at home and traveling. I was having the trouble on both of my computers. We would answer the captcha and the security question definitely correctly. But, on a semi regular (but random and not all the time) basis it would not be accepted. I just tried twice and it validated correctly both times. Not sure what to say but thanks for testing it.

I was successful in removing the security question. On my previous tries I was leaving out the last step "delete line 18". I guess i needed to scroll down to see it or something. I have removed it now and tested the form and it validates correctly and returns the thank you page. I feel kind of stupid......

Thanks for all of your help!!

Sign in to reply to this post

Jason ByrnesWebAssist

I cant say why the validation was failing for you, it may have been that one of the other fields, like email was not correct. Without being able to reproduce it though, it is impossible to say what the cause is or was.

glad to hear the security question removal was successful.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...