Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/04/2015, 19:32
facundojr07
 
Fecha de Ingreso: enero-2013
Mensajes: 64
Antigüedad: 11 años, 3 meses
Puntos: 0
Ocultar campo de formulario

Buenas,

Tengo un formulario para que completen los usuarios. Dicho formulario algunas columnas no sería útil mostrarlas, ejemplo las últimas 2 "ID_usuarios" y "usuarios". Cómo la podría ocultar la columna innecesaria? Muchas gracias, saludos.

Código HTML:
Ver original
  1. <form method="post" id="apuestas" action="inicio.php">
  2. <?php while ($rsEmp = mysql_fetch_assoc($queEmp)) { ?>
  3.   <tr>
  4.     <td>
  5.       <div align="center">
  6.         <input name="ID_Partidos[]" type="text" id="ID_Partido" value="<?php echo $rsEmp['ID_partido']; ?>" size="1" readonly="readonly" />
  7.       </div></td>
  8.     <td>
  9.       <div align="center">
  10.         <input name="fecha_horas[]" type="text" id="fecha_hora" value="<?php echo $rsEmp['fecha_hora']; ?>" readonly="readonly" />
  11.       </div></td>
  12.     <td>
  13.       <div align="center">
  14.         <input type="text" id="numero_fecha" name="numero_fechas[]" value="<?php echo $rsEmp['numero_fecha']; ?>" size="5" readonly="readonly" />
  15.       </div></td>
  16.         <td>
  17.              <div align="center">
  18.                <input type="text" id="numero_partido" name="numero_partidos[]" value="<?php echo $rsEmp['numero_partido']; ?>" size="5" readonly="readonly"  />
  19.         </div></td>
  20.     <td>
  21.       <div align="center">
  22.         <input type="text" id="Local" name="Locales[]" value="<?php echo $rsEmp['Local']; ?>" size="10" readonly="readonly" />
  23.       </div></td>
  24. <td>
  25.     <div align="center">
  26.       <input type="text" id="Visitante" name="Visitantes[]" value="<?php echo $rsEmp['Visitante']; ?>" size="10" readonly="readonly" />
  27.     </div></td>
  28.          
  29.           <td><div align="center">
  30.             <select name="apuestas[]">
  31.              <option disabled="disabled" selected>--Opciones--</option>
  32.               <option id="aposto1" value="1">Local</option>
  33.               <option id="aposto2" value="2">Visitante</option>
  34.               <option id="aposto3" value="3">Empate</option>
  35.             </select>
  36.            
  37.           </div>
  38.          <td>
  39.            <div align="center">
  40.              <input type="text" id="ID_usuario" name="ID_usuarios[]" value="<?php echo $_SESSION['usuario_id'] ?>" size="5" readonly="readonly" />
  41.       </div></td>
  42.     <td>  
  43.       <div align="center">
  44.         <input type="text" id="usuario" name="usuarios[]" value="<?php echo $_SESSION['usuario_login'] ?>" size="10" readonly="readonly" />
  45.       </div></td>
  46.  
  47.     </tr>
  48.      <?php } ?>
  49.            <tr>
  50.     <td colspan="9" align="center"><label for="bts">&nbsp;</label>
  51.     <button type="submit">Guardar</button>
  52.     <button type="reset">Limpiar</button>
  53. </form></td>