close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Validation for Captcha

Thread begun 2/08/2019 3:46 am by john70964 | Last modified 2/08/2019 3:10 pm by Ray Borduin | 1193 views | 3 replies |

john70964

Validation for Captcha

I have the attached page boat-insertShowIf.php
with three "Validation Show if's"
the page is working OK.

I insert Captcha object (and with F12) check the page is still working OK,
and find the page is working correctly.

I then ‌insert the message "The entry is incorrect. Please try again ".
I highlight this message (and with F12) check the page is working OK,
I find the page is still working correctly.

I now highlight the validation message under the Captcha object

Open WA >Forms >Validation >Server Validation
The Server Valdation: Insert box opens
Validation trigger: any form post Entered
Validation Type: Like Entry Entered
Sever Variable: session captch_Security_Code_1

Next Plus icon click
Same as Lightning bolt FormPost:Insert_Basic_Default
Security_Code_1

Code inserted <?php echo((isset($_POST["Security_Code_1"]))?$_POST["Security_Code_1"]:"") ?>

Failed redirect: entered the same page

I attach an image to show the steps for the like validation

After the Server Validation is applied to the Captcha none of the validations on the page are working.

I saved the non working page as boat-insertShowIf with capture.php
and the working page as boat-insertShowIf.php
Can you see where I am going wrong please?
Many thanks
John

Sign in to reply to this post

Ray BorduinWebAssist

You added a second server validations server behavior to the page instead of adding the CAPTCHA validation to the first one. You should edit the existing server validations and add the CAPTCHA validation their and remove the first Server Validations server behavior. You should only have one Server Validations server behavior applied per form.

Sign in to reply to this post
Did this help? Tips are appreciated...

john70964

Thanks Ray
I dont quite understand what is being said.
Quote;
"You should only have one Server Validations server behavior applied per form".

I have had a look at the code and I cannot see where there are 2 Server validations.

What is the "CAPTCHA validation"

I notice now that data from the selection box is not being placed in the database. I am almost sure it was working last night.
Later:
The selection box does not seem to work at all.
I have tried it dynamic and as a straight list but is is not entering the database field.

Sign in to reply to this post

Ray BorduinWebAssist

I've attached a screen grab of the Server Behaviors panel when I open your page in Dreamweaver.

You can see that the first and fourth item listed are both "WA Server Validations"

That means you added it twice. You should have edited the existing one to add another validated field (CAPTCHA) where the other three validations are instead of adding a new Validation server behavior.

Now you can delete the first one and edit the second one listed to add the captcha there instead.

Sign in to reply to this post
Did this help? Tips are appreciated...

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