<?php
  if( @!$_POST{'Escribele'} )
    $DisplayBlock =  "<form action=\"{$_SERVER{'PHP_SELF'}}\" method=\"post\">
                        <p>
                          Nombre:
                          <br />
                          <input type=\"text\" name=\"Nombre\" size=\"30\"
                                 maxlength=\"15\" />
                          <br /><br />
                          Dirección:
                          <br />
                          <textarea name=\"Direccion\" rows=\"5\" cols=\"40\"
                                    style=\"font:14pt bookman; color:#000000;\"> &lt;&lt;- Pueden poner ustedes texto inicial aquí -&gt;&gt;
                          </textarea>
                          <br /><br />
                          <input type=\"radio\" name=\"Tipo\" value=\"Hogar\"
                                 checked=\"checked\" />
                            Hogar
                          <input type=\"radio\" name=\"Tipo\"
                                 value=\"Trabajo\" />
                            Trabajo
                          <input type=\"radio\" name=\"Tipo\" value=\"Otro\" />
                            Otro
                          <br /><br />
                          <input type=\"hidden\" name=\"Escribele\"
                                 value=\"1\" />
                          <input type=\"submit\" name=\"Submit\"
                                 value=\"Enviar\" />
                        </p>
                      </form>";
  else
    $DisplayBlock =  "<p style=\"font:28pt helvetic; color:#000090;\">
                        Bienvenido <strong>{$_POST{'Nombre'}}</strong>
                      </p>
                      <p style=\"font:18pt helvetic; color:#000090;\">
                          Tu direcci&oacute;n de {$_POST{'Tipo'}} es:
                          <br />
                          <ul>
                            <li style=\"list-style-type: none;\">" .
                              nl2br( $_POST{'Direccion'} ) . "
                            </li>
                          </ul>
                        </p>";

  require_once( "Cabeza5.inc" );
  print( $DisplayBlock );
  require_once( "incPie5.php" );
?>