close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Security question and answer "problem"...

Thread began 9/25/2009 1:26 am by Stevebo | Last modified 10/14/2009 3:55 pm by Eric Mittman | 1376 views | 5 replies |

Stevebo

Security question and answer "problem"...

I noticed that a security question was what day comes before tuesday? If a person types Monday it fails. If they type monday it passes. Was this intentional? I'd bet a normal person would wonder what was wrong with their answer since days of the week are "normally" capitalized.

steve

Sign in to reply to this post

Eric Mittman

Thanks for pointing this out, I have logged a bug for it. Unlike the Contact Form Solution Pack CSS Form Builder does not set the entered answer to lowercase before making the comparison so entering the capital letter will cause it to fail validation.

The work around is to update the security question validation on the page and make it look like this:

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

I just added in the strtolower() around the posted element to make it lowercase and match the session variable.

Sign in to reply to this post

A Sound Design

I am having this problem too. I didn't have to add the strtolower as it was already there. I find that the security question will accept 'monday' but not 'Monday'. As a workaround is it possible to remove the 'days' question from the WAVT_CaptchaSecurityImages.php file? If so, I'm not quite sure what to delete as I don't want to muck up the code and make it even worse.

Sign in to reply to this post

Eric Mittman

There is normally one strtolower present but it is only applied to the session variable that is being compared, not to the posted element from the form. This is why the entry with the lowercase works but not with the uppercase. You will need to wrap the strtolower around the input value. If you post back with your page that has the form on it or just the Validation code from the top of the page I can show you where this would need to be inserted.

Sign in to reply to this post

A Sound Design

Is this the code?

<?php
if (isset($_POST["IntCoursesApplicationForms_submit"])) {
$WAFV_Redirect = "application_form_online_ksi_one_to_one.php?invalid=true";
$_SESSION['WAVT_applicationformonlineksionetoone_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ((isset($_POST["Kick_Start_Intense_one_to_one_Contact_Details_Name"])?$_POST["Kick_Start_Intense_one_to_one_Contact_Details_Name"]:"") . "",true,1);
$WAFV_Errors .= WAValidateEM((isset($_POST["Kick_Start_Intense_one_to_one_Contact_Details_Email"])?$_POST["Kick_Start_Intense_one_to_one_Contact_Details_Email"]:"") . "",true,2);
$WAFV_Errors .= WAValidateRQ((isset($_POST["Kick_Start_Intense_one_to_one_Contact_Details_Address_Line_1"])?$_POST["Kick_Start_Intense_one_to_one_Contact_Details_Address_Line_1"]:"") . "",true,3);
$WAFV_Errors .= WAValidateRQ((isset($_POST["Kick_Start_Intense_one_to_one_Contact_Details_Town_City"])?$_POST["Kick_Start_Intense_one_to_one_Contact_Details_Town_City"]:"") . "",true,4);
$WAFV_Errors .= WAValidateRQ((isset($_POST["Kick_Start_Intense_one_to_one_Your_Driving_Experience_Driving_License_Number"])?$_POST["Kick_Start_Intense_one_to_one_Your_Driving_Experience_Driving_License_Number"]:"") . "",true,5);
$WAFV_Errors .= WAValidateRQ((isset($_POST["Kick_Start_Intense_one_to_one_Your_Driving_Experience_Do_you_have_any_driving_experience_to_date"])?$_POST["Kick_Start_Intense_one_to_one_Your_Driving_Experience_Do_you_have_any_driving_experience_to_date"]:"") . "",true,6);
$WAFV_Errors .= WAValidateRQ((isset($_POST["Kick_Start_Intense_one_to_one_Your_Driving_Experience_Have_you_taken_any_driving_tests"])?$_POST["Kick_Start_Intense_one_to_one_Your_Driving_Experience_Have_you_taken_any_driving_tests"]:"") . "",true,7);
$WAFV_Errors .= WAValidateRQ((isset($_POST["Kick_Start_Intense_one_to_one_Theory_Test_Have_you_passed_your_theory_test"])?$_POST["Kick_Start_Intense_one_to_one_Theory_Test_Have_you_passed_your_theory_test"]:"") . "",true,8);
$WAFV_Errors .= WAValidateRQ((isset($_POST["Kick_Start_Intense_one_to_one_Your_Course_Preferences_Do_you_require_accomodation"])?$_POST["Kick_Start_Intense_one_to_one_Your_Course_Preferences_Do_you_require_accomodation"]:"") . "",true,9);
$WAFV_Errors .= WAValidateRQ((isset($_POST["Kick_Start_Intense_one_to_one_Your_Course_Preferences_When_are_you_available_to_take_the_course_please_list_all_available_dates"])?$_POST["Kick_Start_Intense_one_to_one_Your_Course_Preferences_When_are_you_available_to_take_the_course_please_list_all_available_dates"]:"") . "",true,10);
$WAFV_Errors .= WAValidateLE((isset($_POST["Kick_Start_Intense_one_to_one_Anti_Spam_Protection_Answer"])?$_POST["Kick_Start_Intense_one_to_one_Anti_Spam_Protection_Answer"]:"") . "",((isset($_SESSION["random_answer"]))?strtolower($_SESSION["random_answer"]):"") . "",true,11);
$WAFV_Errors .= WAValidateRX((isset($_POST["HiddenFields_fields"])?$_POST["HiddenFields_fields"]:"") . "","/.*/",false,12);

if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"applicationformonlineksionetoone");
}
}
?>

Sign in to reply to this post

Eric Mittman

In the list of validations that you posted it is the second to the last one, it has an 11 at the end of it. You should update it to be like this:

php:
$WAFV_Errors .= WAValidateLE((isset($_POST["Kick_Start_Intense_one_to_one_Anti_Spam_Protection_Answer"])?strtolower($_POST["Kick_Start_Intense_one_to_one_Anti_Spam_Protection_Answer"]):"") . "",((isset($_SESSION["random_answer"]))?strtolower($_SESSION["random_answer"]):"") . "",true,11);
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...