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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How do I get a CAPTCHA to work in the Power Store?

Thread began 10/26/2016 3:58 pm by john42771 | Last modified 10/31/2016 1:32 pm by Ray Borduin | 692 views | 9 replies |

john42771

How do I get a CAPTCHA to work in the Power Store?

The page with the form is checkout7.php and it is embedded in checkout.php.
Still not working after following tutorials and various tips on this forum.
Can you please help me?
http://www.lovetakeslearning.com/store/checkout.php

Sign in to reply to this post

Ray BorduinWebAssist

The validation would take place on the confirm7_cart.php page. I imagine that is where the problem is, but you didn't attach that page for me to look at.

What exactly isn't working? Is it allowing any captcha value to pass? or never accepting the captcha?

Sign in to reply to this post

john42771

Thanks for looking at this. I did not realize that I needed to do anything on this page. Here's the page you mentioned.

Thanks again for helping me sort this out,

John

Sign in to reply to this post

Ray BorduinWebAssist

You need to open up the Server Validations server behavior and add the Like Entry validation to compare the entered value to the correct captcha value.

To add the code manually, you can add this after line 33 on confirm7_cart.php.

$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Security_Code_1"])?$_POST["Security_Code_1"]:"")) . "",((isset($_SESSION["captcha_Security_Code_1"]))?strtolower($_SESSION["captcha_Security_Code_1"]):"") . "",true,10);
Sign in to reply to this post

john42771

Ray,

Thanks so much for the replies. I have done the above with no different results.
(When I click continue, a lightbox begins to open... Open... Nope. CLOSE. I remain on the checkout.php page. I can get no further.
Please let me know as soon as you're able. Your help is very appreciated.

John
PS
I noticed that the submitting form posts Security_Code_1, not Security_Code as in your manual code example, so I changed it... No change to results. I have attached the latest files. Please be so kind as to inspect.

Sign in to reply to this post

Ray BorduinWebAssist

The code for the CAPTCHA looks correct to me. Can I get FTP access to the server to debug it?

Sign in to reply to this post

john42771

Your requested info is in the private area.
Thanks Ray.

Sign in to reply to this post

Ray BorduinWebAssist

There were two issues.

1) You had renamed your checkout button from "CheckoutWizard_submit" to "submit"
2) You had the form variable referenced as: $_POST["Security_Code1"] instead of: $_POST["Security_Code_1"]

I corrected those two things and it appears to be working properly now.

Sign in to reply to this post

john42771

Ray,

Thanks for getting to this in such a timely manner. I greatly appreciate it.
See PayPal for a little tip!

John

Sign in to reply to this post

Ray BorduinWebAssist

Thanks John. I appreciate it, and I'm glad it is working for you now.

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