Un Saludo , MUchas Gracias
[/HIGHLIGHT]
include_once("bd.php");
$conn=abrirbd();
$sql="select * from ciudades";
$rs=mysql_query($sql);
while($fila=mysql_fetch_array($rs))
{
echo"<tr>";
echo"<td>".$fila1 = $fila["id_ciudades"]."</td>";
echo"<td>".$fila2 = $fila["nombre"]."</td>";
echo"<td>".$fila3 =$fila["poblacion"]."</td>";
echo"<td>".$fila4 =$fila["circuito"]."</td>";
echo"</tr>";
}
?>
r
<html>
<head>
</head>
<body>
<form method="post" action="modificar2.php">
id_ciudades <INPUT type="text" name="id_ciudades" value="<?php echo $fila1 ?>"/><br><br>
nombre <INPUT type="text" name="nombre" value="<?php echo $fila3 ?>"/><br><br>
poblacion <INPUT type="text" name="poblacion" value="<?php echo $fila3 ?>"/><br><br>
circuito <INPUT type="text" name="circuito" value="<?php echo $fila4 ?>"/><br><br>
<INPUT type="submit" name="enviar" value=""/><br><br>
<INPUT type="submit" name="enviar" value=""/><br><br>
<a href="index.php">indice</a>
</body>
</html>[HIGHLIGHT="PHP"]
modificar2.php
Código PHP:
Ver original
<html> <head> <title> historia de formula 1 </title> </head> <body> <?PHP echo $_POST["id_ciudades"]; echo $_POST["nombre"]; echo $_POST["poblacion"]; echo $_POST["circuito"]; echo $_POST["enviar"]; } ?>