close ad
 
Important WebAssist Announcement
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 4:38 pm by Freddy | Last modified 7/24/2013 7:28 am by Freddy | 755 views | 1 replies

Jason ByrnesWebAssist

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

php:
<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:
field=sec_question_2

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:
captcha_sec_question_2

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

php:
$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:

php:
$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:

php:
<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:
field=capcha_2

so the session being created will be named:
captcha_capcha_2

in the validation you are using the session named captcha_capcha:

php:
$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

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

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