{: NES 0.9 ('{: * cfg_plugin_top_dir :}/forms_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; ---------------------------------------------------------------------------- :}

Formulario seguro con chequeo de campos:

{: & form (test0,,,,20m,30s,none,5/1)
nes_forms_plugin_test0_error_last  : {: *nes_forms_plugin_test0_error_last :}  
nes_forms_plugin_test0_error_fatal : {: *nes_forms_plugin_test0_error_fatal :}  
nes_forms_plugin_test0_attempts    : {: *nes_forms_plugin_test0_attempts :}  

{: & check ( {: # field_name:min,max,type # type: num, email o regex :} 'user: 4,30', 'password: 4,20' ) :}
{: ~ !*nes_forms_plugin_test0_is_ok {: ~ *nes_forms_plugin_test0_error_field {: # error en cualquier campo de form1 :}

Se han detectado errores: {: ~ *nes_forms_plugin_test0_error_field_user {: # error en el campo nombre de form1 :}
* ERROR en Usuario:
necesario entre 4 y 30 caracteres :} {: ~ *nes_forms_plugin_test0_error_field_password
* ERROR en Password:
es necesario y debe tener entre 2 y 20 caracteres :}

:}
Usuario:
Password:
:} {: ~ *nes_forms_plugin_test0_is_ok Ok Send data :}
:}


Formulario seguro con chequeo de campos y captcha:

{: & form (test1,,ctest1,,20m,30s,none,10/1)
nes_forms_plugin_test1_error_last    : {: *nes_forms_plugin_test1_error_last :}  
nes_forms_plugin_test1_error_fatal   : {: *nes_forms_plugin_test1_error_fatal :}  
nes_forms_plugin_test1_attempts      : {: *nes_forms_plugin_test1_attempts :}  
nes_captcha_plugin_ctest1_error_last : {: *nes_captcha_plugin_ctest1_error_last :}  
nes_captcha_plugin_ctest1_error_fatal: {: *nes_captcha_plugin_ctest1_error_fatal :}  
nes_captcha_plugin_ctest1_attempts   : {: *nes_captcha_plugin_ctest1_attempts :}  

{: & check ( {: # field_name:min,max,type # type: num, email o regex :} 'user: 4,30', 'password: 4,20' ) :}
{: ~ !*nes_forms_plugin_test1_is_ok
{: ~ ( ! * nes_forms_plugin_test1_last_step ) {: & captcha (ctest1,ascii,4,0) :} :}
Usuario: {: ~ *nes_forms_plugin_test1_error_field_user {: # error en el campo nombre de form1 :}
Requiere entre 4 y 30 caracteres :}
Password: {: ~ *nes_forms_plugin_test1_error_field_password
Requiere entre 2 y 20 caracteres :}
{: & captcha_code :}  Código de seguridad:
  {: ~ *nes_captcha_plugin_ctest1_error_fatal
 Código incorrecto:}
 
:} {: ~ *nes_forms_plugin_test1_is_ok Ok Send data :}
:}


Formulario seguro con chequeo y captcha en el último paso:

{: & form (test2,0,ctest2,last,20m,30s,none,10/1)
nes_forms_plugin_test2_error_last    : {: *nes_forms_plugin_test2_error_last :}  
nes_forms_plugin_test2_error_fatal   : {: *nes_forms_plugin_test2_error_fatal :}  
nes_forms_plugin_test2_attempts      : {: *nes_forms_plugin_test2_attempts :}  
nes_captcha_plugin_ctest2_error_last : {: *nes_captcha_plugin_ctest2_error_last :}  
nes_captcha_plugin_ctest2_error_fatal: {: *nes_captcha_plugin_ctest2_error_fatal :}  
nes_captcha_plugin_ctest2_attempts   : {: *nes_captcha_plugin_ctest2_attempts :}  

{: & check ( {: # field_name:min,max,type # type: num, email o regex :} 'user: 4,30', 'password: 4,20' ) :}
{: ~ !*nes_forms_plugin_test2_is_ok {: ~ *nes_forms_plugin_test2_error_field {: # error en cualquier campo de form1 :}

Se han detectado errores: {: ~ *nes_forms_plugin_test2_error_field_user {: # error en el campo nombre de form1 :}
* ERROR en Usuario:
necesario entre 4 y 30 caracteres :} {: ~ *nes_forms_plugin_test2_error_field_password
* ERROR en Password:
es necesario y debe tener entre 2 y 20 caracteres :}

:}
{: ~ *nes_forms_plugin_test2_last_step {: & captcha (ctest2,ascii,4,0) :} :}
{: & captcha_code :}  Código de seguridad:
  {: ~ *nes_captcha_plugin_ctest2_error_fatal
 Código incorrecto :}
 

Usuario:
Password:
:} {: ~ *nes_forms_plugin_test2_is_ok Ok Send data :}
:}