close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

captcha not working

Thread began 7/15/2011 5:20 pm by officeinfocom362633 | Last modified 8/02/2011 10:36 am by Jason Byrnes | 2711 views | 18 replies |

officeinfocom362633

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

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

Jason ByrnesWebAssist

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:
<?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:
<?php if(isset($_SESSION['captcha_Security_Code_1'])) unset($_SESSION['captcha_Security_Code_1']); ?>
Sign in to reply to this post

officeinfocom362633

Is working

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

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post

officeinfocom362633

One more question

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

Sign in to reply to this post

Ray BorduinWebAssist

Bind the field values to the "validated entries" in the Dreamweaver Bindings panel and they will maintain their values after a failed validation.

Sign in to reply to this post

officeinfocom362633

?

Have any ideea how can I do this ?

Where can I find a tutorial ?


Thank you very much for all your answers until now.

Sign in to reply to this post

officeinfocom362633

Can you tell me how can I "Bind the field values" with Dreamweaver, or where can I find a tutorial ?

Sign in to reply to this post

Ray BorduinWebAssist

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

Sign in to reply to this post

officeinfocom362633

Not working

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 ?

Sign in to reply to this post
loading

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