es algo raro pero puede ser:
editar.php
Código PHP:
<html>
<head><title></title></head>
<body>
<?php
if(isset($_POST['buscar']))
{
$id=$_POST['id'];
include "conexion.php";
conectar();
$b=mysql_query("select *from tabla where id='$id'") or die("error".mysql_error());
$con=mysql_fetch_array($b);
echo '<form action="editar.php" method="post">';
echo 'nombre:<input type="text" name="nombre" value="'.$con['nombre'].'"><input type="hidden" name="id" value="'.$con['id'].'"><br>';
echo '<input type="submit" name="guardar" value="guadar">';
echo '</form>';
}
else
{
?>
<form action="editar.php" method="post">
buscar:<input type="text" name="id"><br>
<input type="submit" name="buscar">
</form>
<?php
if(isset($_POST['guardar']))
{
$id=$_POST['id'];
$nombre=$_POST['nombre'];
mysql_query("UPDATE tabla SET nombre='$nombre' WHERE id='$id'") or die("error".mysql_error());
}
?>
</body>
</html>
espero te ayude