Ver Mensaje Individual
  #7 (permalink)  
Antiguo 29/03/2008, 13:42
Ruben_C
 
Fecha de Ingreso: febrero-2006
Mensajes: 217
Antigüedad: 18 años, 2 meses
Puntos: 0
Re: La pagina no toma la variable (valor) que le envio

Gracias muchachos por la luz enviada, lo logre, asi me quedo por si le interesa a alguien:

Pagina maestra:

Código HTML:
<table border="1" sumary="usuarios">
<tr>
<th>Nombre</th>
<th>Apellido</th>
<th>Telefono</th>
</tr>
<?php require_once('Connections/seleccion.php');
mysql_select_db($database_seleccion, $seleccion);
//capturar el campo arte
$nom=$_POST['arte'];
//seleccionar los datos relacionados con arte

$sql=mysql_query("SELECT * FROM registro WHERE arte='".$nom."'",$seleccion);?>
<?php while ($row = mysql_fetch_array($sql)) { ?>
    <tr>
      <td><a href="detalle.php?recordID=<?php echo $row['id_']; ?>"><?php echo $row['nombre']; ?></a></td>
      <td><?php echo $row['apellido']; ?>&nbsp; </td>
      <td><?php echo $row['telefono']; ?>&nbsp; </td>
      </tr>
    <?php } ?> 

</table> 
y la pagina detalle me queda asi:

Código HTML:
<?php require_once('Connections/seleccion.php'); ?>
<?php mysql_select_db($database_seleccion, $seleccion);
if (isset($_GET['recordID'])) {
    $colname_detalle = $_GET['recordID'];
}  ?>

//aqui va la tabla con el detalle

<table width="308" border="1">
<?php $sql=mysql_query("SELECT * FROM registro WHERE id_='".$colname_detalle."'",$seleccion);?>

<?php while ($row = mysql_fetch_array($sql)) { ?>
  <tr>
    <td width="97" rowspan="3">&nbsp;</td>
    <td width="54">Nombre:</td>
    <td width="120" colspan="3"><?php echo $row['nombre']; ?></td>
  </tr>
  <tr>
    <td>Apellido:</td>
    <td colspan="3"><?php echo $row['apellido']; ?></td>
  </tr>
  <tr>
  .
  .
  .
</table>

//y asi se termina la consulta
<?php }?> 
Gracias por la ayuda.