Necesito saber donde es mi error este es el formulario
Código HTML:
Ver original<form action="newEmptyPHP.php"> <input type="text" name="buscar" value=""> <input type="submit" value="Submit">
y aqui recibo los datos
Código PHP:
Ver original<?php
$buscar = $_POST['buscar'];
$sql="SELECT * FROM presidents WHERE id = $buscar;";
echo "<form action=''' method='POST'>";
echo "ID : <input type='text' name='id' value='".$row[0]."'/>";
echo"<br/>";
echo "Nombre : <input type='text' name='Nombre' value='".$row[1]."'/>";
echo"<br/>";
echo "Nombre : <input type='text' name='Apellido' value='".$row[2]."'/>";
echo"<br/>";
echo "<input type='submit'value='Enviar'/>";
echo "</form>";
}
?>