close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Contact Form Not Validating Answer to Security Question

Thread began 11/03/2009 10:06 am by don327719 | Last modified 11/04/2009 5:52 pm by Eric Mittman | 2342 views | 4 replies |

don327719

Contact Form Not Validating Answer to Security Question

I have included the url and can attach the actual contactus.php if need be. The rest of the site was pretty easy to set up just finally stuck. The security question always comes back "Wrong Answer". I am pretty sure I am missing a setting somewhere along the way. Thanks for your help.

contactus.php

Sign in to reply to this post

Eric Mittman

In the code on this page you should have these lines of code toward the top of the page:

php:
if ($WAFV_Errors != "")  {

    PostResult($WAFV_Redirect,$WAFV_Errors,"contact");
  }



Update this code so that it looks like this:

php:
if ($WAFV_Errors != "")  {

      die("the answer you posted is: " . strtolower($_POST["Security_question"]) . "<br/>the anwser it is looking for is: " . $_SESSION["random_answer"]);
    PostResult($WAFV_Redirect,$WAFV_Errors,"contact");
  }



When you test this page out you will see a white page that just has two messages about the security question and the answer. Please post back with what you discover.

Sign in to reply to this post

don327719

Two line post back

the answer you posted is: saturday
the anwser it is looking for is: saturday

Sign in to reply to this post

don327719

Two line post back - Next Step

Hi Eric, I did get the correct answers back. Any advice? Trying to finish this project up.

Sign in to reply to this post

Eric Mittman

Based on the result you are getting this validation should not be failing. Is it possible for you to post back with this page in a zip archive? I can take a look, do some testing and add in some extra debug code to help determine why it is not working correctly. If we need to open a ticket to post private information just let me know.

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...