captcha not working
Dear sir
I follow the instruction from your video step by step but the result that I have obtained is not working, and the error message can be seen anyway.
I test it on my localhost.
Please can you help me.
Thank You
Dear sir
I follow the instruction from your video step by step but the result that I have obtained is not working, and the error message can be seen anyway.
I test it on my localhost.
Please can you help me.
Thank You
your page does not have enough to test whether captcha is working or not
add the following code after the body tag to show a message if the form posts succesfully:
<?php if($_SERVER['REQUEST_METHOD'[ == "POST") { ?>
The Form Posted Succesffuly.
<?php } ?>
the captcha error is stored in a session that will only be cleared if the form posts successfully, you can manually clear the session by adding this code after the </html> tag:
<?php if(isset($_SESSION['captcha_Security_Code_1'])) unset($_SESSION['captcha_Security_Code_1']); ?>
Thank you very much for your answer.
I put also that piece off code and is working.
My questions is wy your extension did not put automatically at the end of the page this code
<?php if(isset($_SESSION['captcha_Security_Code_1'])) unset($_SESSION['captcha_Security_Code_1']); ?>
?
And I have 2 other question regarding the captcha code.
1) I do I not have the option to chose "Not Case Sensitive" like in your video presentation ?
In this case where can I edit the code so to not force and bother users to use captcha in case sensitive case.
I need to put 2 captcha code on the same page, because I have there 2 forms.
How can I do ?
All the best
I'm not sure why it would ever be necessary to add that code to the bottom of the page. That is why our extension doesn't add it.
To make it not case sensitive you can wrap both code sections with strtolower(). That would be added both to the compare value on the main page and the compare to field in the popup. If they are both converted to lower case before comparing it will make it effectively case insensitive.
I just discover that after I fill the form in case that you do not write the corect captcha code the filling rubrics will be empty despide I make them "sticky notes", in this case the user have to fill again all the form.
How can I avoid this ?
PS
Can you insert again in captcha extension "Not Case Sensitive" option as it is in your video presentation so it could be easyer for us to work with this extension ?
I only change in this line of code and it's working (regarding to case sensitive)
$WAFV_Errors .= WAValidateLE(strtolower($_SESSION['captcha_Security_Code_1']) . "",strtolower(((isset($_POST["Security_Code_1"])))?$_POST["Security_Code_1"]:"") . "",true,1);
Maybe wil ask you and other users ....
Bind the field values to the "validated entries" in the Dreamweaver Bindings panel and they will maintain their values after a failed validation.
Have any ideea how can I do this ?
Where can I find a tutorial ?
Thank you very much for all your answers until now.
Can you tell me how can I "Bind the field values" with Dreamweaver, or where can I find a tutorial ?
Highlight the form field. Go to Window->Bindings in Dreamweaver. Open the "Validated Entries" fields and pick the one associated with the selected form field and click "bind".
Dear Sir
Thank you very much for your answers and your time.
I did exactly as you told me but I have the same probleme.
I bind the code but in case the user did not insert corect the captcha code the data that he have inserted already do not remain in form.
They remain in form only if the user insert the corect code.
This is the code that I use :
<input name="nume2" type="text" required class="fnormal" placeholder="Numele dumneavoastra" value="<?php echo((isset($_POST["nume2"]))?$_POST["nume2"]:"") ?>" aria-required="true" /><br />
I program in html 5, but I do not think this is the cause of the problem.
Tip:
in case that someoane alse ask you the same question you can give them this link
wa_fv_67.htm
I hope you can find a solution for this problem ?
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.