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

CATCHA NOT WORKING

Thread began 4/24/2014 5:50 am by Solis Web Design And Hosting | Last modified 4/25/2014 1:03 pm by Jason Byrnes | 390 views | 7 replies |

Solis Web Design And Hosting

CATCHA NOT WORKING

i'm having an issue where the captcha while it displays it doesn't validate....i believe i have followed all the instructions...in fact i created a test sub domain just to make it simple and it just doesn't work at all....when i hit submit to the form it just goes right to the action form and there is nothing stopping it..

in a private message i will provide ftp information so you may investigate this issue

Please help..

Sign in to reply to this post

Jason ByrnesWebAssist

can you attach a copy of the form page and a link to the form page please?

Sign in to reply to this post

Solis Web Design And Hosting

Web Address

Here is link to the form: http://captcha.solishost.com/

Sign in to reply to this post

Jason ByrnesWebAssist

Rule number 1 when working with forms:

- All Form processing must occur on the forms action page.

The action of the form on your index page is to post to the conformation page:

action="confirmation.php"


The seerver validation behavor needs to be added to the action page.

this tutorial:
http://www.webassist.com/tutorials/Add-server-validation-to-your-web-forms

goes through adding validation to your form pages, it uses the example of a checkout page that posts to a confirm page, use that tutorial for an example of adding validation to a form that posts to another page.

Sign in to reply to this post

Solis Web Design And Hosting

I'm a bit confused because it doesn't work on my web site either

Here are the steps i took on my web site...

I added form....this form inserts to a database and then it emails me information...the action page is same page...

now i added captcha and then i added validation to fields i needed..

Now everything works the only issue is that on captcha i can enter anything and it still works but if i enter nothing it will not work and it goes to my failed page so the validation is working just not the captcha code that needs to work if correct code is entered and fail if the wrong code is entered..

I tried it a few times to remove validation and captcha information form the page and re adding it and still doesn't work..

Sign in to reply to this post

Jason ByrnesWebAssist

susing FTP to look at the code for the index page on the server, the from tag is:

<form action="confirmation.php" method="post" name="435345345" id="435345345" accept-charset="UTF-8">


the action of the form is to post to the confirmation page.


there is no code on the conformation page to process the page.

the validation code that I see is on the ondex page.

in the server validation code, on the index page:

<?php 
if (($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)) {
$WAFV_Redirect = "failed_confirmation.php";
$_SESSION['WAVT_index_255_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ(((isset($_POST["Security_Code_1"]))?$_POST["Security_Code_1"]:"") . "",false,1);

if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"index_255");
}
}
?>




you are using the required vlaidation type, not the like entry validation type.

1) the validation server behavior must be on the page specified as the form action

2) you should use the like entry validation type to compare the captcha session variable to the captcha form element.

Sign in to reply to this post

Solis Web Design And Hosting

Issue solved

Thank you so much Jason that solved the issue....AS ALWAYS GREAT SUPPORT!!!!!!

Originally Said By: Jason Byrnes
  susing FTP to look at the code for the index page on the server, the from tag is:

<form action="confirmation.php" method="post" name="435345345" id="435345345" accept-charset="UTF-8">


the action of the form is to post to the confirmation page.


there is no code on the conformation page to process the page.

the validation code that I see is on the ondex page.

in the server validation code, on the index page:
<?php 
if (($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)) {
$WAFV_Redirect = "failed_confirmation.php";
$_SESSION['WAVT_index_255_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ(((isset($_POST["Security_Code_1"]))?$_POST["Security_Code_1"]:"") . "",false,1);

if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"index_255");
}
}
?>



you are using the required vlaidation type, not the like entry validation type.

1) the validation server behavior must be on the page specified as the form action

2) you should use the like entry validation type to compare the captcha session variable to the captcha form element.  
Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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