y con esto extraigo los datos..
Código PHP:
<?php import_request_variables("GP");
$enlace = mysql_connect("localhost","root","") or die ("Error en la conexion ");
$bd = mysql_select_db ("bdII",$enlace) OR die ("Error en la BD");
$sentencia = "SELECT * FROM alumnos WHERE id_alumno = $id";
$result = mysql_query($sentencia,$enlace);
$row= mysql_fetch_array($result);
?>
Código PHP:
<input name="nombres" type="text" size="27" value="<?php echo $row['nombres']; ?>" >