PHP Classes

CAPTCHA

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  How to Show Google Ma...  >  All threads  >  CAPTCHA  >  (Un) Subscribe thread alerts  
Subject:CAPTCHA
Summary:Setting CAPTCHA attributes
Messages:5
Author:James
Date:2009-05-01 12:15:30
Update:2009-05-14 13:14:57
 

  1. CAPTCHA   Reply   Report abuse  
Picture of James James - 2009-05-01 12:15:30
Is there a reason you cannot set the following attributes in the CAPTCHA?
"TabIndex"
"STYLE"
"ExtraAttributes"=>array("autocomplete"=>"off")

  2. Re: CAPTCHA   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-05-01 20:30:41 - In reply to message 1 from James
This is not a regular input, so it only has specific properties. To configure options of internal inputs, they need to be supported explicitly by the plug-in class.

If you want to configure the presentation of the text input, you can use the InputStyle and InputClass parameters.

If you need it, I can add support to TABINDEX and disable autocomplete permanently. What other attributes you think you need?

  3. Re: CAPTCHA   Reply   Report abuse  
Picture of James James - 2009-05-03 00:30:48 - In reply to message 2 from Manuel Lemos
Thank you. If it's not too much trouble, adding support for TABINDEX and removing autocomplete would be very appreciated.

  4. Re: CAPTCHA   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-05-14 09:29:51 - In reply to message 3 from James
I just added TABINDEX support using parameter InputTabIndex .

I did not disable autocomplete explicitly because it is not a standard property and HTML validation would fail, which is a problem for developers working for US government institutions. But I added a parameter named InputExtraAttributes which lets you additional HTML attributes for the text input.

This version is not yet released but you can get it from CVS.

meta-language.net/cvs/forms/form_ca ...

  5. Re: CAPTCHA   Reply   Report abuse  
Picture of James James - 2009-05-14 13:14:57 - In reply to message 4 from Manuel Lemos
Works perfectly.

Thank you.