
11/03/2011, 13:47
|
| | Fecha de Ingreso: marzo-2011 Ubicación: Veracruz
Mensajes: 92
Antigüedad: 14 años Puntos: 3 | |
Respuesta: Pasar variable por GET No necesitas un while:
.
.
.
$sql=mysql_query("SELECT ID FROM users WHERE Username='$user'",$con);
$row = mysql_fetch_array($sql);
?>
//Este es el input en el formulario donde iria el valor del ID
<input name="iduser" type="hidden" id="iduser" value="<?php echo $row['ID']; ?>" /> |