Aqui les dejo el formulario:
Código PHP:
   <?php 
include("funciones.php");
session_start();
$borrar=false;
 
//damos valor inicial a las variables value
$nombre="";
$email="";
$provincia="Valencia";
$poblacion="";
$telefono="";
$apellido="";
$movil="";
$direccion="";
$averia="";
$codigo_postal="";
$dni="";
$marca="";
$modelo="";
$fecha_compra="DD/MM/AAAA";
$comercio="";
$garantia="Si";
 
if(isset($_SESSION['nombre'])) {
    $borrar=true;
    // si se han definido las sessions intercambiamos los nombres
    $nombre=$_SESSION['nombre'];
    $email=$_SESSION['email'];
    $provincia=$_SESSION['provincia'];
    $poblacion=$_SESSION['poblacion'];
    $telefono=$_SESSION['telefono'];
    $apellido=$_SESSION['apellido'];
    $movil=$_SESSION['movil'];
    $direccion=$_SESSION['direccion'];
    $averia=$_SESSION['averia'];
    $codigo_postal=$_SESSION['codigo_postal'];
    $dni=$_SESSION['dni'];
    $marca=$_SESSION['marca'];
    $modelo=$_SESSION['modelo'];
    $fecha_compra=$_SESSION['fecha_compra'];
    $comercio=$_SESSION['comercio'];
    $garantia=$_SESSION['garantia'];
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/estilo.css" rel="stylesheet" type="text/css" /><title>SAT BalMa - Contacta</title>
<script languaje="javascript">
function habilita(form)
{ 
    form.fecha_compra.disabled = false;
    form.comercio.disabled = false;
}
 
function deshabilita(form)
{ 
    form.fecha_compra.disabled = true;
    form.comercio.disabled = true;
}
</script>
</head>
 
<body>
<table width="96%" height="691" border="0">
  <tr>
    <td width="70%" height="77"><img src="ima/contacto.png" alt="" width="687" height="103" /></td>
    <td width="30%" rowspan="2" valign="top"> </td>
  </tr>
  <tr>
    <td rowspan="2" valign="top">
      <form action="enviar_form.php" method="post" name="formulario_contacto">
        <fieldset>
        <table width="100%" border="0">
            <legend>DATOS DEL USUARIO</legend>
            <tr>
              <td colspan="2"><input type="text" value="<?php echo fechaActual(); ?>" size="10" maxlength="10" name="fecha" disabled="disabled" /></td>
            </tr>
            <tr>
                <td width="120">Nombre:</td> <td><input type="text" value="<?php echo $nombre; ?>" name="nombre" size="60" /> *</td>
             </tr>
            <tr>
                <td>Apellidos:</td> <td><input value="<?php echo $apellido; ?>" type="text" name="apellidos" size="60" /></td>
            </tr>
            <tr>
                <td>Teléfono:</td> <td colspan="3"><input value="<?php echo $telefono; ?>" type="text" name="telefono" size="9" maxlength="9" /> 
                *         Móvil: 
                <input value="<?php echo $movil; ?>" type="text" name="movil" size="9" maxlength="9" /></td> 
            </tr>
            <tr>
                <td>E-Mail:</td> <td><input value="<?php echo $email; ?>" type="text" name="email" size="60" /> 
                *</td>
               </tr>
            <tr>
                <td>Provincia:</td> <td><input type="text" value="<?php echo $provincia; ?>" name="provincia" size="60" /> 
                *</td>
            </tr>
            <tr>
                <td>Población:</td> <td><input type="text" name="poblacion" value="<?php echo $poblacion; ?>" size="60" /> 
                * </td>
            </tr>
            <tr>
                <td>Dirección:</td> <td><input value="<?php echo $direccion; ?>" type="text" name="direccion" size="60" /></td>
            </tr>
            <tr>
                <td>Código Postal:</td> <td><input value="<?php echo $codigo_postal; ?>" type="text" name="c_postal" size="5" maxlength="5" /></td>
            </tr>
            <tr>
                  <td>DNI/CIF</td> <td><input name="dni_num" type="text" value="<?php echo $dni; ?>" size="15" /></td>
            </tr>
       </table>
        </fieldset>
        <fieldset>
           <table width="100%" border="0">
           <legend>DATOS DEL APARATO</legend>
               <tr>
                <td width="120">
                Marca: </td>
              <td><select name="marca_campana">
                    <option value="pando" <?php if($marca=='pando') echo 'selected="selected"'; else echo 'selected="selected"'; ?> id="pando">Pando</option>
                    <option <?php if($marca=='orpan') echo 'selected="selected"'; ?> value="orpan" id="orpan">Orpan</option>
                    <option value="thermex" <?php if($marca=='thermex') echo 'selected="selected"'; ?> id="thermex">Thermex</option>
                 </select></td>
              </tr>
            <tr>
                <td width="120">Modelo:</td> <td><input value="<?php echo $modelo; ?>" type="text" name="modelo" size="60" /></td>
               </tr>
            <tr>
                 <td>Avería o consulta: </td><td><textarea name="averia" cols="60" rows="10"><?php echo $averia; ?></textarea> 
                   </td>
            </tr>
            <tr>
                <td>Garantía: </td>
                       <td><label for="s">Sí:</label> 
                    <input type="radio" id="s" name="garantia" value="Si" <?php if($garantia=='Si') echo'checked="checked"'; ?> onClick="habilita(this.form)" />
                    <label for="n">No:</label> <input id="n" name="garantia" <?php if($garantia=='No') echo'checked="checked"'; else echo 'checked="checked"'; ?> type="radio" onClick="deshabilita(this.form)" value="No" /></td>
               </tr>
            <tr>         
                   <td>Fecha de compra:</td> <td><input disabled="disabled" type="text" value="<?php echo $fecha_compra; ?>" name="fecha_compra" size="12" maxlength="10" /></td>
            </tr>
            <tr>          
                  <td>Comercio de la compra: </td> <td><input disabled="disabled" value="<?php echo $comercio; ?>" type="text" name="comercio" size="30" /></td>
               </tr>
           </table> 
         </fieldset>
        <p>(*) Campos Obligatorios.<br /><br />
          <input type="hidden" name="fecha" value="<?php echo fechaActual(); ?>" />
          <input type="hidden" name="borrar" value="<?php echo $borrar; ?>" />
          <input align="middle" type="image" src="ima/botones/enviar.png" name="enviar"  />
        </p>
</form>
    </td>
  </tr>
  
</table></div></div>
</div>
</body>
</html>   
 

