close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

captcha validation

Thread began 6/23/2013 8:23 pm by tom439449 | Last modified 6/25/2013 4:26 pm by tom439449 | 3320 views | 4 replies |

tom439449

captcha validation

I am trying to validate the captcha attempting to use the tutorial at: http://assets.webassist.com/html-help/331/form_toolkit_validations_captcha.html. On the form, action=p_thankyou.php. I get the captcha to insert on the form without a problem (I think).

I'm assuming I have to add the validation code to "p_thankyou.php" but I don't see Security_Code_1 from the posted form or any posted form elements at all as seen in the 4th screen shot of the tutorial. I only see the session variable and if you set the session variable = to the session variable instead of the form POST it will always validate.

I have attached both files. The captcha is on p_contact.php but I have removed the but the flawed validation from p_thankyou.php

What am I doing wrong?

Sign in to reply to this post

Jason ByrnesWebAssist

on the p_thankyou.php page, go to the bindings panel and click the plus button. select form data, then select the p_contact.php page.

this will add the form bindings or the contact page to the thank you page.

Sign in to reply to this post

tom439449

Thanks-- works great. I wish that would have mentioned in the tutorial though.

Another question about if the captcha is incorrectly entered, I have it take you right back to the contact page and all the fields on the form have been cleared. I know how to re-populate those fields by writing a bunch of php code using session variables etc. but is there an easier way of having the data re-populate the fields?

Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

Use the Validated entries bindings for the initial value of the forms.

see the following tutorial:
http://www.webassist.com/community/tutorials/view_tutorial.php?tid=16

Sign in to reply to this post

tom439449

Works like a champ! Thanks!

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