Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/06/2008, 14:30
waxorsp
 
Fecha de Ingreso: junio-2008
Mensajes: 21
Antigüedad: 15 años, 10 meses
Puntos: 0
necesito ayuda

hola a los miembros necesito que alguien me ayude a soucionar un problema urgente estoy haciendo un modulo para un sistema de biblioteca y el problema que tengo es que no puedo pasar datos de un formulario a otro.

a continuacion presento parte del codigo:

$sql=mysql_query("SELECT a.*, b.*,d.*,f.*,g.*
FROM indice a, libro b, ubicacion d, reserva f, estado g
WHERE f.usu_rut='$id' and a.ind_cod=f.ind_cod and a.lib_cod=b.lib_cod and a.ubi_cod=d.ubi_cod and g.est_cod=a.est_cod",$conexion)
or die("Problemas en el select:".mysql_error());

while($respuesta=mysql_fetch_array($sql)){

$ind=$respuesta['ind_cod'];
$libro=$respuesta['lib_cod'];
$libnombre=$respuesta['lib_nombre'];
$ubia=$respuesta['ubi_a'];
$ubib=$respuesta['ubi_b'];
$reserva=$respuesta['res_num'];
$estado=$respuesta['est_nombre'];
?>
</tr>
<tr>
<td height="28"><? echo $reserva;?></td>
<td height="28"><? echo $ind;?></td>
<td width="81"><? echo $libro;?></td>
<td width="245"><? echo $libnombre;?></td>
<td width="73"><? echo $estado;?></td>
<td width="92"><? echo $ubia;?></td>
<td width="92"><? echo $ubib;?></td>

<td width="71"> <div align="center">
<form method="POST" action="grabar_prestamo.php">
<input type="submit" value="prestar" name="prestar">
</div></td>
</tr>
</form>





los datos que necesito pasar al otro formulario son $ind y $reserva para poder ocuparlos en una consulta sql