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


Security question not matching the Captcha image

Thread began 7/23/2013 7:38 pm by Freddy | Last modified 7/24/2013 10:28 am by Jason Byrnes | 573 views | 1 replies |


Security question not matching the Captcha image


I am having difficulties finding out why the security question keeps giving me an error and doesn't match the captcha image whe submitting the form.
Hoping you can point in the right direction as to what's causing the problem.

links to Pages in question are below, as well as attached:

Thank you

Sign in to reply to this post

Jason ByrnesWebAssist

on the enquiry form page, the code to generate the captcha image is:

<img id="capt1"  src="webassist/captcha/wavt_captchasecurityimages.php?width=200&height=50&field=sec_question_2&bgcolor=FFFFFF&transparent=0&bgimage=&gridfreq=20&gridcolor=000000&gridorder=behind&noisefreq=20&noisecolor=000000&noiseorder=behind&characters=5&charheight=&font=fonts/MACTYPE.TTF&textcolor=000000" alt="security code" width="200" height="50" />

one of the URL variables being passed is named field:

this is uses to set the name of the session that will be created. the session name gets created as captcha_<field value>. so in this case the name of the session will be:

in the server validation you are using the session named captcha_sec_question instead:

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

that code should be:

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

same issue with the we buy boats form. the captcha image code is:

<img id="capt1"  src="webassist/captcha/wavt_captchasecurityimages.php?width=200&height=50&field=capcha_2&bgcolor=FFFFFF&transparent=0&bgimage=&gridfreq=20&gridcolor=000000&gridorder=behind&noisefreq=20&noisecolor=000000&noiseorder=behind&characters=5&charheight=&font=fonts/MACTYPE.TTF&textcolor=000000" alt="security code" width="200" height="50" />

the field varioable in that code is:

so the session being created will be named:

in the validation you are using the session named captcha_capcha:

$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["capcha"])?$_POST["capcha"]:"")) . "",((isset($_SESSION["captcha_capcha"]))?strtolower($_SESSION["captcha_capcha"]):"") . "",true,8);

it should be using the captcha_capcha_2 session

$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["capcha"])?$_POST["capcha"]:"")) . "",((isset($_SESSION["captcha_capcha_2"]))?strtolower($_SESSION["captcha_capcha_2"]):"") . "",true,8);
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





Ease of use


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