Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/02/2014, 10:57
LiveTechno
 
Fecha de Ingreso: junio-2011
Ubicación: Barcelona
Mensajes: 212
Antigüedad: 12 años, 11 meses
Puntos: 17
Respuesta: validaciones para un boton

Por ejemplo:

Código PHP:
Ver original
  1. <?php
  2. $estado = ($resultado == 2) ? "disabled" : "";
  3. ?>
  4. <input type="text" name="testing" <?php echo $estado;?>
__________________
Twitter: @ed33x