Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 06:12:42 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Captcha redirect pages  (Read 1158 times)
mrmcctt

Offline Offline

Posts: 20


« on: January 18, 2008, 04:11:02 PM »

Hopefully this is an easy fix that I just can't find.

I have built a website on my computer using WAMP and WB.  In the website I have a comments form that is rather long.  If someone fills out the form and does the Captcha verification correctly, the page refreshes and a "Thank You" is shown at the bottom of the page.  If they fill out the form and incorrectly fill out the Captcha verification, the page refreshes and an error message with a back button shows at the bottom of the form.  In either case (success or failure) if a person doesn't scroll all the way to the bottom of the page, they will never see the message.

What I would like to do is have two pages, a Thank You page and a Verification Failed page in my website.  Neither of these pages should be shown in a menu or sub-menu. I would like these pages linked to the Captcha "Submit" button.  If the person successfully submits the form info, they are re-directed to the Thank You page that will have a small thank you message and all the links to the site on it. If they fail the verification, they are re-directed to the Verification Failed page with a back button to take them back to the form page.

I have made the two pages (Thank You and Verification Failed) in WB.  They are hidden so they don't show up in the menu links.  How do I get the Captcha to redirect to these two pages?

Any help is greatly appreciated.
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #1 on: January 18, 2008, 06:03:05 PM »

Hello,

try to upgrade to the advanced form and/or news modul from our addons Page (Core Replacement modules). This has a javascript improovement wich only prompts the missing fields without the loosing of datas.

Matthias
Logged
mrmcctt

Offline Offline

Posts: 20


« Reply #2 on: January 18, 2008, 06:43:06 PM »

Thank you.

This didn't seem to work though.  I upgraded the form module as you suggested.  At the bottom of the settings page there is a "Success Page" item with a drop down menu showing all the pages in my site.  No matter which page I select I get this error message when I try to save the settings:

Code:
Unknown column 'success_page' in 'field list'


Where is this field list? Also, how do I add a "Failed Page" because even with the form module upgrade, after submission the page just refreshes to the top of the page.  This forces the user to scroll all the way to the bottom of the page to see if their submission worked or not.

Will I have to re-do the form since I updated the module?
Logged
mrmcctt

Offline Offline

Posts: 20


« Reply #3 on: January 18, 2008, 07:43:36 PM »

Now I can't even enable CAPTCHA in a new form because every time I do I get the error message listed above and CAPTCHA defaults to disabled.

Is there a way to dump this new form module?  The old one worked (somewhat) but the new one is useless to me.  If I try to uninstall it now from the Add-Ons panel, I get a message that I can't because it's in use.
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #4 on: January 18, 2008, 08:04:29 PM »

Hello,

did you run the upgrade script wich comes with this modul as it is described on the addons page?

The message you have says that there are the fields missing wich should be generated from this upgrade script.

As long as you didn't have run the upgrade scrfipt you can swith back to normal form with simply overwriting the files with the original ones from WB.

After running the upgrad script swithcing back to original form is no more possible.

Matthias
Logged
mrmcctt

Offline Offline

Posts: 20


« Reply #5 on: January 18, 2008, 08:58:25 PM »

I have WB 2.6.7 installed under Wamp on a WinXP system.  I failed to read at the top of the modules page to not install the form upgrade from the admin window.  I dumped WB and re-installed it into Wamp.  I then tried to install the upgrade by extracting it to the WB folder, overwriting files.  I still have not seen a script for the file to upgrade and I still get the same error.

Code:
Unknown column 'success_page' in 'field list'

From what I can see from the Add Ons page, I don't need this upgrade since I am running 2.6.7.  I tried a clean install of WB with the form upgrade and got the same error message.

All I am trying to do is be able to click on the CAPTCHA "Submit" button and go to either a "Thank You Page" or a "Verification Failed Page" once submit has been clicked.  I knew how to do it with HTML but can't find where to do it in WB.

I am going to re-install WB after deleting it from the server.  I will set up all my pages again (it's not too bad, I saved the source code for all of them) and re-do my form.  All I need to figure out is where to put a link to direct people to a Thank You or a Verification Failed page after they hit "Submit".

Another thing to note is that I had this form set up to use cgiemail forsending e-mails of the responses to me.  Would this cause problems?
Logged
DGEC

Offline Offline

Posts: 386


WWW
« Reply #6 on: January 18, 2008, 09:50:06 PM »

You have to run the "update_form.php" file from your browser. That will update your system.
Logged
mrmcctt

Offline Offline

Posts: 20


« Reply #7 on: January 18, 2008, 10:43:23 PM »

You, Sir, are my hero of the hour. 

I do have one question left.  How do I show them if they made a mistake either in not filling out the CAPTCHA verification or inputting the wrong numbers?  If a visitor types in the correct CAPTCHA verification and hits "SUBMIT", the form page flashes up for a second and then the "Thank You" page shows.  That's fantastic. 

Now, How do I show a "Verification Failed" page if they either failed to fill out the verification info or input the incorrect info?  Is this something I need to add to the new form module or is there something I am missing?

Anyway, Thank You Thank You Thank You
Logged
DGEC

Offline Offline

Posts: 386


WWW
« Reply #8 on: January 24, 2008, 12:06:19 AM »

You shouldn't need to do anything.  The form replays the page after clicking submit and shows any validation errors.

However, it shows the errorlist on a version of the page that replaces the form, instead of showing the form again with an error message above it, refilling in the fields that are okay and highlighting the error fields. Blech.

Someone said the core replacement Advanced Form pages are supposed to redisplay the form, like everyone is used to, but it doesn't seem to do that for me.

Also note that if the contact form is not the only segment on a page, all the other segments will be redisplayed again, regardless as to if there any errors.

One page I did has the message form at the bottom of several segments. I'm going to have to move it, because you can't see that there was a failure unless you scroll down to the bottom again Sad
p.s. thanks, do I get a biscuit?  wink
« Last Edit: January 24, 2008, 12:17:17 AM by DGEC » Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!