1. Este site usa cookies. Ao continuar a usar este site está a concordar com o nosso uso de cookies. Saber Mais.

[Ajuda] - Envio de formulário em HTML para endereço de email através de botão

Discussão em 'Web Development' iniciada por Gandalf, 22 de Janeiro de 2008. (Respostas: 0; Visualizações: 2194)

  1. Gandalf

    Gandalf I fold therefore I AM

    Boas,

    Venho por este meio pedir ajuda para solucionar uma questão sobre html e asp que não é dos meus dominios académicos.

    Tenho um formulário em html com vários campos (junto o quote do ficheiro) e tinha um ficheiro mail.asp que reunia a informaçao toda e enviava para determinado email.
    Ora o dominio aonde estava alojado desapareceu e nao consegui resgatar o .asp a tempo.
    Gostava de saber se alguma alma caridosa me da umas luzes ou uma ajuda para recriar e por isto a funcionar visto ser algo urgente.
    Pode nao ser em .asp, pode ser tambem em php se for possivel.

    Aqui fica o codigo.

    Código:
    <html><head><title>orcamento</title>
    
    
    <style type="text/css">
    <!--
    a {  color: #0066CC; text-decoration: none}
    a:hover {  color: #3399FF; text-decoration: none}
    .style1 {color: #FFFF66}
    body {
    	background-color: #2E9FC7;
    }
    -->
    </style><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body>
    <table align="center" border="0" cellpadding="0" cellspacing="0" height="440" width="625">
      <tbody><tr>
        <td height="95"><div align="center"><img src="orcamentos_files/logo.gif" height="124" width="516"></div></td>
      </tr>
      <tr valign="top"> 
        <td height="1994"> 
          <table border="0" cellpadding="0" cellspacing="0" height="300" width="625">
            <tbody><tr>
              <td valign="top" width="10"> 
                <table border="0" cellpadding="0" cellspacing="0">
                  <tbody>
                  <tr> 
                    <td height="539">&nbsp;</td>
                  </tr>
                  <tr> 
                    <td height="467">&nbsp;</td>
                  </tr>
                </tbody></table>
                <p><br>
                  <br>
                </p>
                <p>&nbsp;</p>          </td>
              <td valign="top" width="615"><form name="orcamentos" action="mail.asp" method="post">
                  <p><em><strong><font face="Arial" size="2"><span class="style1">Para obter uma proposta preencha os dados do seguinte formulário: </span></font></strong></em></p>
                  <table border="0" cellpadding="4" cellspacing="0" width="420">
                    <tbody><tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Nome</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="nome" size="40" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Email</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="email" size="16" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Telefone</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="telemovel" size="16" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Telemóvel</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="andar" size="16" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Prédio/Propriedade </font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="predio_propriedade" size="12" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Morada</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="morada" size="40" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2"> Código Postal<br>
                          Localidade</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="cod_postal" size="8" type="text">
                        </font><br>
                        <font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="localidade" size="20" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Habitação</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="habitacao" value="checkbox" type="checkbox">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Escritório</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="escritorio" value="checkbox" type="checkbox">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Outros</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="outros" value="checkbox" type="checkbox">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Qual</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="qual" size="30" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Garagens</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="garagens" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Nº 
                          Pisos</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="pisos" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Nº 
                          Parqueamentos</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="parqueamentos" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Nº 
                          Fracções</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="fraccoes" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2"><b>Serviços 
                          de Portaria</b></font></div>                  </td>
                      <td width="230">&nbsp;</td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Nº 
                          Homens</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="homens" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Nº 
                          Horas</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="horas" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Porteira</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="porteira" size="16" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2"><b>Serviços 
                          de Limpeza</b></font></div>                  </td>
                      <td width="230">&nbsp;</td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Nº 
                          Mulheres</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="mulheres" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Nº 
                          Horas</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="horas" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Dias</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="dias" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2"><b>Elevadores</b></font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Marca</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="marca" size="16" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Nº 
                          Elevadores</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="elevadores" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2"><b>Sistemas 
                          de Bombagem</b></font></div>                  </td>
                      <td width="230">&nbsp;</td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Bomba 
                          de esgotos</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="esgotos" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Bomba 
                          de águas pluviais</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="aguas_pluviais" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Bombas 
                          hidropressoras</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="hidropressoras" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Bombas 
                          de incêndio</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="incendio" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2"><b>Extracção 
                          mecânica</b></font></div>                  </td>
                      <td width="230">&nbsp;</td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Casas 
                          de Banho</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="banho" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Cozinhas</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="cozinhas" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2"> 
                          Lareiras</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        </font><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="lareiras" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Desenfumagem<br>
                          (garagens) </font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="desenfumagem" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2"><b>Equip. 
                          Diversos</b></font></div>                  </td>
                      <td width="230">&nbsp;</td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Pararaios</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="pararaios" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2"> 
                          Condutas do lixo</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="lixo" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Central 
                          de incêndios (SADI)</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="central_incendios" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Central 
                          de detecção de CO</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="central_deteccao" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2"><b>Equip. 
                          sociais e de lazer</b></font></div>                  </td>
                      <td width="230">&nbsp;</td>
                    </tr>
                    <tr> 
                      <td width="174">
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Piscinas</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2">
                        <input name="piscinas" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Saunas</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="saunas" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr>
                      <td width="174">
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Ténis</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2">
                        <input name="tenis" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr>
                      <td width="174">
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Ginásio</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2">
                        <input name="ginasio" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr>
                      <td width="174">
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Jardim</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2">
                        <input name="jardim" size="8" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2">Outros</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <input name="outros" size="40" type="text">
                        </font></td>
                    </tr>
                    <tr> 
                      <td width="174"> 
                        <div class="style1" align="right"><font face="Arial, Helvetica, sans-serif" size="2"><br>
      Comentários</font></div>                  </td>
                      <td width="230"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                        <textarea name="sugestoes" rows="4" wrap="PHYSICAL" cols="30"></textarea>
                        </font></td>
                    </tr>
                  </tbody></table>
                  <p align="center"><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                    <br>
                    <input name="enviar" value="Enviar Pedido de Orçamento" type="submit">
                    </font><font color="#000000" face="Arial, Helvetica, sans-serif" size="2"> 
                    </font></p>
                <input name="mail-paraEmail" value="[email protected]" type="hidden">
    	<input name="mail-Assunto" value="Orçamentos - enviado através do site" type="hidden">
    	<input name="mail-resposta" value="http://www.x.pt/orcamentos_resp.html" type="hidden">
    	<input name="mail-erro" value="http://www.x.pt/orcamentos_resp.html" type="hidden">
    			</form>
                <p>&nbsp;</p>          </td>
            </tr>
          </tbody></table>    </td>
      </tr>
    </tbody></table>
    </body></html>

    Obrigado por qualquer ajuda rapida.

    Cumps
     
    Última edição: 22 de Janeiro de 2008

Partilhar esta Página