{: NES 0.9 ('{: * cfg_plugin_top_dir :}/captcha.pl','none') :} {: # ---------------------------------------------------------------------------- NES 0.9 beta by - Skriptke Copyright 2009 - 2010 Enrique F. Castañón Licensed under the GNU GPL. http://sourceforge.net/projects/nes/ Sample to use Nes; ---------------------------------------------------------------------------- :}
(test1,ascii,,,,,,1m,5/1)

nes_captcha_plugin_test1_error_last : {: *nes_captcha_plugin_test1_error_last :}  
nes_captcha_plugin_test1_error_fatal: {: *nes_captcha_plugin_test1_error_fatal :}  
nes_captcha_plugin_test1_attempts   : {: *nes_captcha_plugin_test1_attempts :}  
nes_captcha_plugin_test1_is_ok      : {: *nes_captcha_plugin_test1_is_ok :}  
       
{: # name,type,digits,noise,size,sig,spc,expire,attempts :} {: & captcha (test1,ascii,,,,,,1m,5/1)
Teclea el código de seguridad
{: & captcha_code :}
{: ~ *nes_captcha_plugin_test1_error_fatal

Código de seguridad incorrecto

:}
:}
Fuente:

<form name="formtest1" action="#test1">
    {: # name,type,digits,noise,size,sig,spc,expire,attempts :}
    {: & captcha (test1,ascii,,,,,,1m,5/1) 
    <table width="100%">
      <tr>
        <td width="100%" align="center">
        Teclea el código de seguridad
        </td>
      </tr>
        <tr>
        <td width="100%" align="center">
        {: & captcha_code :} 
        </td>
      </tr>
        <tr>
        <td width="100%" align="center">
        <input type="text" name="test1"  size="8" />
        </td>
      </tr>
      <tr>
        <td width="100%" align="center">
        {: ~ *nes_captcha_plugin_fatal_error_test1
        <p align="center">
        <big>Código de seguridad incorrecto</big> 
        </p>
        :}
        <input type="hidden" name="item"  value="Plugin Captcha" />       
        <input name="enviar" type="submit" value="Enviar" />
        </td>
      </tr>
    </table>
   :}
</form>
    


Podemos poner dos o más Captchas en el mismo formulario.
(Salvo que se incluya en el Pugin Forms, que sólo admite uno)

nes_captcha_plugin_test2a_error_last : {: *nes_captcha_plugin_test2a_error_last :}  
nes_captcha_plugin_test2a_error_fatal: {: *nes_captcha_plugin_test2a_error_fatal :}  
nes_captcha_plugin_test2a_attempts   : {: *nes_captcha_plugin_test2a_attempts :}  
nes_captcha_plugin_test2a_is_ok      : {: *nes_captcha_plugin_test2a_is_ok :}  

nes_captcha_plugin_test2b_error_last : {: *nes_captcha_plugin_test2b_error_last :}  
nes_captcha_plugin_test2b_error_fatal: {: *nes_captcha_plugin_test2b_error_fatal :}  
nes_captcha_plugin_test2b_attempts   : {: *nes_captcha_plugin_test2b_attempts :}  
nes_captcha_plugin_test2b_is_ok      : {: *nes_captcha_plugin_test2b_is_ok :}  
       

{: & captcha (test2a,ascii,4,0,2,@,' ') :} {: & captcha (test2b,ascii,4,0,2, ,@) :}
Teclea el código de seguridad Uno
{: & captcha_code :} {: ~ *nes_captcha_plugin_test2a_error_fatal

* Código de seguridad Uno incorrecto

:}
Teclea el código de seguridad Dos
{: & captcha_code :} {: ~ *nes_captcha_plugin_test2b_error_fatal

* Código de seguridad Dos incorrecto

:}


(test3,ascii,,4,3,&nbsp;,&#9619;)
{: & captcha (test3,ascii,,4,3, ,▓)
{: & captcha_code :}
:}


(test4,ascii,,0,6)
{: & captcha (test4,ascii,,0,6)
{: & captcha_code :}
:}


(test5,ascii,4,0,12,&nbsp;,&#9619;)
{: & captcha (test5,ascii,4,0,12, ,▓)
{: & captcha_code :}
:}


(test6,ascii,5,,4,&nbsp;,&#9619;)
{: & captcha (test6,ascii,5,,4, ,▓)
{: & captcha_code :}
:}


(test7,ascii,6,9,3,@,·)
{: & captcha (test7,ascii,6,9,3,@,·)
Teclea el código de seguridad
Si consigues verlo :-)
{: & captcha_code :}
{: ~ *nes_captcha_plugin_test7_error_fatal

Código de seguridad incorrecto

:}
:}