q onda bueno antes q nada quiero saber si pueden echarme la mano con esta duda que tengo primero hago una busqueda en un formulario y la muestra en una tabla mi bronca esta en que no puedo hacer q una ves pulsado el boton ACEPTAR la mande a otro formulario donde tengo los textbox porfa ayudenme aqui va el codigo de la busqueda----------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------
<label>idlibro</label>
<input name="TXTidlibro" type="text"/>
<input name="BTNbuscar" type="submit" value="BUSCAR" align="right"/>
<input name="BTNaceptar" type="button" value="ACEPTAR" align="right" OnClick="javascript:window.location=\'libros.php\' ;" />
</form>
</body>
</html>';
mysql_connect('localhost', 'root', '');
mysql_select_db("biblioteca");
$result=mysql_query("select * from libros where id_libro = '".$_POST['TXTidlibro']."'");
?>
<table border = 1 align="center">
<tr>
<th>id_libro</th>
<th>titulo</th>
<th>autor</th>
<th>editorial</th>
<th>existencia</th>
</tr>
<?
//Mostramos los registros
while ($row=mysql_fetch_array($result))
{
echo '<tr><td>'.$row["id_libro"].'</td>';
echo '<td>'.$row["titulo"].'</td>';
echo '<td>'.$row["autor"].'</td>';
echo '<td>'.$row["editorial"].'</td>';
echo '<td>'.$row["existencia"].'</td></tr>';
}
mysql_free_result($result)
?>
</table>
</body>
</html>
besos luzdel...