Ver Mensaje Individual
  #9 (permalink)  
Antiguo 06/03/2009, 16:02
Avatar de argy
argy
 
Fecha de Ingreso: octubre-2007
Ubicación: Longitud 75º Latitud 18º Sur
Mensajes: 614
Antigüedad: 16 años, 6 meses
Puntos: 18
Respuesta: problemas con checkbox

Cita:
<td width="6%" class="Estilo3"><input type="checkbox" name="txthab" value="<?php
if ($row[38] == 't')
{
echo "<input type = 'checkbox' name= 'txthab' checkead = 'checkead'>";
}
?>
mmm tratas de poner un input de otro input????
porque no te facilitas y haces esto
Código :
Ver original
  1. <td>
  2. $checar=($row[38] == 't')?' checked="checked"':''; //operador ternario que hace los mismo q if
  3. echo '<input type="checkbox"  name="name" '.$checar.' />'
  4. </td>
__________________
Software libre para un mundo libre.

Eventualmente en el foro.