close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Never a valid answer

Thread begun 11/08/2009 4:32 pm by jc1cell390254 | Last modified 11/12/2009 12:08 pm by Jason Byrnes | 6217 views | 22 replies |

jc1cell390254

Never a valid answer

I have placed the security features in my form that include the captcha and security question. Even if I put the correct answer it doesn't validate. I did not apply anything with security assist thinking this is a stand alone product which should validate automatically if the answer is correct.

Guidance on the matter would be great. I didn't see anything in UE or FB that would help me with it.

jc

Sign in to reply to this post

Jason ByrnesWebAssist

Can you send a copy of your file so I can examine the code.

Sign in to reply to this post

jc1cell390254

Here it is

I went ahead and recreated the form and applied universal email to it. Everything seems to work well until I send it. The only thing that errors is the security question even if it's the correct answer.

The file is attached.

Once the first error occurs I have to restart the browser in order to eliminate the message. I can go to any other page and return and the message is still there.

Thank your for looking into this.

jc

Sign in to reply to this post

Jason ByrnesWebAssist

try changing line 15:

php:
$WAFV_Errors .= WAValidateLE((isset($_POST["fieldset_group_nbsp"])?$_POST["fieldset_group_nbsp"]:"") . "",((isset($_SESSION["random_answer"]))?strtolower($_SESSION["random_answer"]):"") . "",true,5);





to:

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

jc1cell390254

I'm afraid that didn't work. You can verify functionality at zona dot zonapromo dot net.

I changed the code and uploaded the new file and nothing. I had seen that in another post and tried it with no success. My issue is with numbers also not necessarily with upper lower issues. But then again, I know no php so your suggestion was well received.

jc

Sign in to reply to this post

Jason ByrnesWebAssist

Just to double check that it is the Security Question failing, find the following code:

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

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




and change it to:

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

    die($WAFV_Errors);
    PostResult($WAFV_Redirect,$WAFV_Errors,"contactZonaPromo");
  }




this will write a comma separated list of numbers to the screen representing the validations that failed, please post that list back so I can look into this further.

Sign in to reply to this post

jc1cell390254

So here's the result of that.

A blank page using the same url for the contact page with the following type:

,5

You can check the functionality at contactZonaPromo.php

jc

Sign in to reply to this post

Jason ByrnesWebAssist

OK, so it is the security question that is failing validation,

To get a little more information on the problem, can you change the die statement:

php:
die($WAFV_Errors);





to:

php:
echo("<pre>");
var_dump($_SESSION);
echo("</pre><br />");
die($WAFV_Errors."|".$_SESSION["random_answer"]."|".$_POST["fieldset_group_nbsp"]);





and post back the results.

Sign in to reply to this post

jc1cell390254

here's the result of that:

array(3) {
["random_answer"]=>
&string(4) "cold"
["captcha_fieldset_group_Security_code"]=>
&string(5) "sDRN9"
["WAVT_contactZonaPromo_Errors"]=>
&string(0) ""
}


,5|cold|5

Sign in to reply to this post

Jason ByrnesWebAssist

one more thing to try, After the <body> tag, add:

php:
<pre><?php var_dump($_SESSION); ?></pre>





also send a copy of your WA_ValidationToolkit/WAVT_CaptchaSecurityQuestion.php

Sign in to reply to this post
loading

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