close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Failing to get capture to validate over two pages

Thread began 9/17/2011 7:38 am by glyn360365 | Last modified 9/19/2011 6:58 am by Jason Byrnes | 1460 views | 3 replies |

glyn360365

Failing to get capture to validate over two pages

In a simple contact form which when submitted generates an email (from another page) I am having problems in setting up the validation, and show if.

Once the Captcha is installed and the validation details are entered as per the 'getting started guide' the form action processes regardless when the submit button is clicked.

I understand from another post that some information must be applied to the form's action page - but I am not clear on how or what needs to be done. Can anyone help please?

I've attached the two pages in question.

Thanks

Glyn

Attached Files
validation_problem.zip
Sign in to reply to this post

mrs

I've just used this myself for the first time, and here's how I did it.

I had an existing recommendation form that has two universal email functions in it (one for creator, one for recipient), and it also posts into a database the content entered in to the form so the site administrator can see what content is being looked at by site users.

What I have done is add the captcha and do the server validation on the form page. When there is an error in the captcha code, I simply redirect the user to a simple html page that says: 'There was an error in the security code, click here to go back.' (a javascript history back -1).

Basically, the captcha coding needs to be added entirely on the form page as far as I am concerned... I might be wrong, but that is the way it is working for me.

Hope that helps.

Mat

Sign in to reply to this post

glyn360365

Thanks for this Mat - I must be doing something blindingly stupid or the plugin isn't working properly.

I can't get the validation to work at all - even redirecting to another page as you suggest - the form redirects as if the capture was completed correctly, whatever the input.

Glyn

Sign in to reply to this post

Jason ByrnesWebAssist

all form processing must be performed on the forms action page.

Your form on the contact.php page is set to post to the contact 2.php page.<form id="form1" name="form1" method="post" action="contact2.php">


this means that the server validation server behavior must be applied to the contact2.php page to validate the form submission.


see this post for more details:
showpost.php?p=105229&postcount=2

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