Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/04/2011, 21:49
juanchove
 
Fecha de Ingreso: febrero-2011
Mensajes: 64
Antigüedad: 13 años, 2 meses
Puntos: 0
while php + boton

buenas noches a todos, aqui presento mi caso, en esta oportunidad me toco a mi preguntar, sere preciso... aqui esta mi codigo

Código PHP:
  <form id="form3" name="form3" method="post" action="buscadorporci.php">
          <table width="591" border="3" align="center" cellpadding="0" cellspacing="0">
            <tr align="center">
              <td width="40" bgcolor="#0000CC">&nbsp;</td>
              <td width="95" bgcolor="#0000CC"><span class="Estilo6">FECHA</span></td>
              <td width="195" bgcolor="#0000CC"><div align="center" class="Estilo21 Estilo19"><strong>CEDULA</strong></div></td>
              <td width="105" bgcolor="#0000CC"><div align="center" class="Estilo21 Estilo19"><strong>NOMBRE</strong></div></td>
              <td width="140" bgcolor="#0000CC"><div align="center" class="Estilo21 Estilo19"><strong>COMENTARIO</strong></div></td>
            </tr>
            <?php 
            
                  $sqlfech 
"SELECT * FROM cvregistro WHERE registro= '1' ";
                  
$resfech=mysql_query($sqlfech,$link); 
                  while(
$filfech=mysql_fetch_array($resfech))
                  {
                
                        
                
                   
?>
            <tr bgcolor="#FFFFFF">
              <td height="26"><label>
                <input type="submit" name="button" id="ci" value="ver" src="buscadorporci.php"/>
              </label></td>
              <td><span class="Estilo24">&nbsp;<?php echo $filfech[6]; ?></span></td>
              <td><span class="Estilo22 style12 Estilo20 Estilo24"><strong>&nbsp;
                      <label><strong>
                      <input name="ci" type="text" id="ci" value="<?php echo $filfech[2]; ?>" />
                      </strong></label>
              </strong></span></td>
              <td><span class="Estilo22 style12 Estilo20 Estilo24"><strong>&nbsp;<?php echo $filfech[1]; ?></strong></span></td>
              <td><span class="Estilo22 style12 Estilo20 Estilo24"><strong>&nbsp;<?php echo $filfech[7]; ?></strong></span></td>
            </tr>
            <?php 
                
                
}
                
                
?>
          </table>
      </form>
"mediante este while me va llenando una tabla, y me va genrando por cada item de la tabla un boton llamado value VER, lo que quiero hacer es que este boton me tome el valor del input text o envie ese valor mediante post al action del form"

no se si me explique muy bien es como que sale una lista de varios nombre y por cada nombre haya un boton que al oprimir muestre los datos de esa cedula