Ver Mensaje Individual
  #4 (permalink)  
Antiguo 14/05/2007, 13:29
Soniapm7
 
Fecha de Ingreso: mayo-2007
Mensajes: 3
Antigüedad: 16 años, 11 meses
Puntos: 0
Re: Como saber que registro es el seleccionado

Gracias.

lo he probado pero como soy nueva en esto no se que hago mal este es mi codigo he quitado cosas pero bueno para que veais el <form>

<?
include('conexion.php');
$link = Conectarse();
?>
<body>
<form action="fichaimagenmod.php" method="get"> <td><input type="submit" name="nuevo" value="Nuevo" onClick="location.href='fichaimagen.php'"/></td>
<td><input type="submit" name="modificar" value="Modificar" onClick="location.href='fichaimagenmod.php'"/></td>
<td><input type="submit" name="Submit3" value="Consultar"/></td>
<td><input type="submit" name="Submit4" value="Eliminar"/></td>
</tr>
</table>

<?php do { ?>
<tr>
<td><input type="radio" name="seleccion" value="<?php $row_Recordset1['idimagen']; ?>"></td>
<td><?php echo $row_Recordset1['idimagen']; ?></td>
<td><?php echo $row_Recordset1['imagen']; ?></td>
<td><input type="checkbox" name="banerprin" value="<?php $row_Recordset1['banerprincipal']; ?>" disabled="disabled"></td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
</form>

y la pagina donde lo recibo solo he puesto la parte del get

<?php

$idimagen = $_GET['seleccion']; echo "el valor es: " .$idimagen;
$link = Conectarse();
mysql_select_db($db_nombre, $link);
$query_Recordset1="SELECT * FROM Imagen WHERE idimagen='2'";
$Recordset1 = mysql_query($query_Recordset1, $link) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
mysql_close($link);
?>