Código:
la idea es hacerlo que un boton,para poder ingresar datos nuevamente...ojala me puedan ayudar,desde ya muchas gracias <?php include("clases/conexion.class.php"); $id=$_GET["q"]; $result=mysql_query("select emp_cod,emp_rut,emp_dir,emp_nom,emp_fono,emp_mail from empresas where emp_rut='$id' ",$link); while($row = mysql_fetch_array($result)) { echo "<form>"; echo "<table style='position:absolute;top:159px;left:220px'>"; echo "<tr>"; echo "<td>Cod.Empresa</td><td><input type='text' name='cod' readonly='readonly' value=" . $row[0] ." size='44'</td>"; echo "</tr>"; echo "<tr>"; echo "<td>Rut</td><td><input type='text' value=" . $row[1] ." size='30'><input type='reset' value='Reset'> </td>"; echo "</tr>"; echo "<tr>"; echo "<td>Direccion</td><td><input type='text' readonly='readonly' value=" . $row[2] ." size='44' </td>"; echo "</tr>"; echo "<table style='position:absolute;top:159px;left:627px;'>"; echo "<tr>"; echo "<td>R.Social</td><td><input type='text' readonly='readonly' value=" . $row[3] ." size='49'</td>"; echo "</tr>"; echo "<tr>"; echo "<td>Fono</td><td><input type='text' readonly='readonly' value=" . $row[4] ." size='49'</td>"; echo "</tr>"; echo "<tr>"; echo "<td>E-Mail</td><td><input type='text' readonly='readonly' value=" . $row[5] ." size='49'</td>"; echo "</table>"; echo "</tr>"; echo "</form>"; } mysql_close($link); ?>