Código PHP:
  
</font><form action="nuevo.php" method="post"><font class="primary">
 
<table class="primary">
  <tbody>
    <th colspan="2" valign="top" nowrap="yes" align="left">Prestamo:    
  </th></tr>
  <tr>
    <td nowrap="true" class="primary" valign="top">N° credencial de Alumno:    </td>
    <td valign="top" class="primary">
      <input type="text" name="idalumno" value='<?php  $_POST['idalumno']?>'><?php echo $error1 ?></td>
  </tr>
  <tr>
    <td nowrap="true" class="primary" valign="top">
      Id del Libro:    </td>
    <td valign="top" class="primary">
      <input type="text" name="idlibro" value='<?php  $_POST['idlibro']?>'><?php echo $error2 ?></td>
  </tr>
<tr>
    <td nowrap="true" class="primary" valign="top">
      Tiitulo del Libro:    </td>
    <td valign="top" class="primary">
      <input type="text" name="titulo" value='SEGUN LA ID QUE SE ESTE TECLEANDO'</td>
  </tr>
  <tr>
    <td nowrap="true" class="primary" valign="top">
      Tipo de prestamo:    </td>
    <td valign="top" class="primary">
      <select name="idtipo_prestamo" size="1">
          <option value="1">Interno</option>
        <option value="2">Externo</option>
      </select>
    </td>
  </tr>
  <tr>
    <td nowrap="true" class="primary" valign="top">Fecha de Salida:</td>
    <td valign="top" class="primary">
    
      <input type="date" name="fecha_entrega" id="date" value="<?php echo date('Y-m-d'); ?>"></td>
  </tr>
  <tr>
    <td nowrap="true" class="primary" valign="top">Fecha de Devolución:</td>
    <td valign="top" class="primary">
      <input type="date" name="fecha_devolucion" id="date" value="<?php echo date('Y-m-d'); ?>">
          </td>
  </tr>  
  <tr>
    <td align="center" colspan="2" class="primary">
      <input type="submit" value="Guardar" class="button" name="boton">
      <input type="reset" value="Cancel" class="button">
    </td>
  </tr>
 
</tbody></table>
 
</font>    
 



