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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Multiple Forms with Multiple Captchas on one page

Thread began 9/20/2009 3:52 pm by Martin | Last modified 9/21/2009 4:13 pm by Jason Byrnes | 2452 views | 3 replies |

Martin

Multiple Forms with Multiple Captchas on one page

Greetings,

First, this is a nice extension... =) However, I am not sure if this post should be in this forum or in the Universal E-Mail forum.

But since I think the issue is with Captcha Validation, I will post it here.

Currently I have a site that requires several forms on one page inside JavaScript tabs.

Ok, no problem inserting and configuring the forms, getting them to validate etc.

contact.php if you want to have a look.

First there is a simple contact form, then an appointment form and a finally a job application form. All three forms validate properly and display different captcha images.

However, when I use Universal E-Mail to generate the e-mail from the form, only the first form (the contact form) actually works.

The other two come up with an ?invalid=true upon submission. I think this is somehow because the captcha may be validating to the wrong session?

Am I on the right track?

I know that three forms on one page is not the norm, but for this site it was necessary and I am going to be doing the same thing on another site soon.

Any help would be appreciated!

Thanks,

Martin

Sign in to reply to this post

Jason ByrnesWebAssist

Each form will need to have a submit button with a unique name.

There will also be a separate Server Validation server behavior to validate the captcha for each unique form. The trigger for the validation will need to be set to the Submit button: <Name of button for that form> pressed trigger.

My guess is that the server validations are set to se the currant page submit trigger.

Sign in to reply to this post

Martin

Hi Jason,

Thanks for getting back to me. To provide you with more information. Each UE is triggered by the associated submit button for that form. So the Contact is triggered by the contact button, the Appointment form is triggered by the appointment button and so on...

I still think that even though I have three separate captcha instances, somehow the session is returning invalid true because the captcha is validating to the wrong session.

Digging into it a bit further when I go to the Server Behaviors panel and check the "validation show if" for the captcha, it is set to Validations Fail on any and then an associated like entry for the Captcha session.

So that is looking correct to me... Any ideas why the Appointment and the Job App form are returning invalid true?

Thanks,

Martin

Sign in to reply to this post

Jason ByrnesWebAssist

can you send a cop[y of the page so I can take a look.


It is most likely that the Server Validation server behavior is not set to the unique button pressed trigger, but I need to see the code to tell for sure.

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