Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/08/2007, 14:30
ralosoft
 
Fecha de Ingreso: agosto-2007
Mensajes: 39
Antigüedad: 16 años, 8 meses
Puntos: 0
Re: registro incompleto de una consulta a BD

$qvalida = mysql_query("select * from empleados where emp_clave = '" . $_GET['vr_rpe'] . "' and emp_passw = '" . $_GET['vr_passw']. "'");
$fila=mysql_fetch_row($qvalida);
$qnomciu=mysql_query("select * from ciudades where ciu_clv = '$fila[1]'");
$filciu=mysql_fetch_row($qnomciu);
if (mysql_num_rows($qvalida) < 1)
{
echo "<center><h2>Password o Usuario Inv&aacute;lido. Pulse el bot&oacute;n Regresar</h2></center>";
}
else
{
echo "<center><table border='0' width='80%'>";
echo "<tr><form action='registra.php' method='get' target='cuerpo'>";
echo "<input type='hidden' name='rel_ciu' value=$fila[1]>";
echo "<input type='hidden' name='rel_clave' value=$fila[0]>";
echo "<input type='hidden' name='rel_nom' value=$fila[2]>";
echo "<input type='hidden' name='rel_nomciu' value=$filciu[1]>";
echo "<br><br><br><br><br><center><input type='submit' value='Bienvenido $fila[2]. Presione para Continuar'></center>";
echo "</tr></form></table></center>";
}
?>



en registra. php utilizo un select cachando los datos con el $_get

$ws_ciudad=$_GET['rel_ciu'];

<select name='vr_ciudad' size=1><option value='" . $ws_ciudad . "' selected> " .$_GET['rel_nomciu']."</option></select>