Ver Mensaje Individual
  #6 (permalink)  
Antiguo 04/11/2010, 09:32
antoniojim
 
Fecha de Ingreso: marzo-2005
Ubicación: Málaga
Mensajes: 115
Antigüedad: 19 años, 2 meses
Puntos: 0
Respuesta: Validacion de un checkbox en Zend Form

Este es el código:

Código PHP:
Ver original
  1. $check=new Zend_Form_Element_Checkbox('check');
  2.        $check->setLabel("I agree to the Terms of Service")
  3.                ->setRequired(true)
  4.                ;

y así recojo las variables para ver el contenido.

Código PHP:
Ver original
  1. $form=new Application_Form_Register();
  2.  
  3. print_r($form->getValues());

Y lo chequee o no siempre sale 0