Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Eae galera tudo tranquilo, estou precisando de uma ajudinha ai de vocês mais uma vez....
Não manjo nada de formulario nem nada, mas, criei um formulario de envio de email e esta acontecendo o seguinte:
Quando o a pessoa clica em enviar a pagina atual vai para uma tela que da a mensagem de que foi enviado, até ai beleza, porem a tela não volta sozinha com ode costume nos formularios de envio, e quando eu forço a volta para a tela anterior aparece o formulario preenchido com se não estivesse enviado as msgs mas as mensagens chegam no meu email normalmente.
estou com uma outra duvida tbm que é a seguinte os itens de assunto não vão no email quando recebo, a baixo segue os códigos ai valeu galera.
cód. "HTML"
<!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">](http://www.w3.org/1999/xhtml)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contato</title>
<style type="text/css">
.hu {
color: #066;
}
body {
background-color: #458BE9;
color: #FFF;
font-weight: bold;
font-size: 12;
}
.cont {
font-size: 10px;
font-weight: bold;
color: #FFF;
}
.cont a {
color: #FFF;
}
.cont strong {
font-weight: normal;
}
.cont {
font-weight: normal;
font-family: "Times New Roman", Times, serif;
font-size: 13px;
text-align: center;
}
.cont strong {
font-size: 14px;
}
body,td,th {
font-size: 12px;
color: #000;
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}
a:link {
color: #FFF;
}
a:visited {
color: #FFF;
}
.IHI {
color: #000;
text-align: center;
}
.IHI {
text-align: center;
}
.GHHH {
font-family: Arial, Helvetica, sans-serif;
color: #0027B4;
font-size: 10px;
font-weight: bold;
}
.ZWE {
font-size: 10px;
}
.HJKK {
font-size: 12px;
}
</style>
<script type="text/javascript">
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
</script>
</head>
<body>
<table width="720" height="517" border="1" align="center">
<tr>
<td colspan="2" bgcolor="#0027B4" scope="col"><img src="Logo a Força do Bem.png" width="236" height="204" vspace="0" /></td>
</tr>
<tr>
<td width="236" align="center" bgcolor="#0027B4"><a href="index.html" title="Home" target="_self">HOME</a></td>
<td width="468" rowspan="5" align="center" valign="bottom" bgcolor="#FFFFFF"><form action="enviar-contato.php" method="post" target="_self">
<table width="95%" height="135" align="center">
<tr>
<td height="131" align="center" valign="top"><table width="18%" height="71" align="center">
<tr>
<td><img src="images.png" width="76" height="65" align="absmiddle" /></td>
</tr>
</table>
<p class="GHHH">ENTRE EM CONTATO CONOSCO POR EMAIL OU NOS LIGUE<br />
<span class="HJKK">7345-4459</span></p></td>
</tr>
</table>
<p><span class="ZWE">Nome:</span><br />
<input name="nome" type="text" />
<br />
<span class="ZWE">E-mail:</span><br />
<input name="email" type="text" />
<br />
<span class="ZWE">Assunto:</span><br />
<select name=size="1" id= onchange=>
<option>Solicitação de Doações</option>
<option>Ser Voluntario</option>
<option selected="selected">Sugestões</option>
<option>Solicitação para retirada de Doações</option>
<option>Diversos</option>
</select>
</p>
<p>
<textarea name="mensagem"></textarea>
</p>
<input type="submit" name="enviarcontato" value="Enviar" />
<input type="reset" name="Apagar" id="Apagar" value="Limpar" />
</form></td>
</tr>
<tr>
<td align="center" bgcolor="#0027B4"><a href="Quem Somos.html" title="Quem Somos" target="_self">QUEM SOMOS</a></td>
</tr>
<tr>
<td align="center" bgcolor="#0027B4"><a href="Parceiros e Patrocinios.html" title="Parceiros e Patrocinios" target="_self">PARCEIROS E PATROCINIOS</a></td>
</tr>
<tr>
<td align="center" bgcolor="#0027B4"><a href="contato.html" title="Contato" target="_self">CONTATO</a></td>
</tr>
<tr>
<td height="191" bgcolor="#FFFFFF"><img src="Fraternally.png" width="233" height="151" /></td>
</tr>
<tr>
<td height="20" colspan="2" bgcolor="#0132BB"><h4 class="cont"> <strong>Copyright©2012 Fraternally - Todos os direitos reservados - </strong> Designer, Criação, Revisão & Administração: <a href="mailto:artattackdg@gmail.com">Art Attack P.D.</a></h4></td>
</tr>
</table>
</body>
</html>
Agora o cód. "PHP"
<?php
if(isset($_POST['enviarcontato'])){
$msg = "Nome: \t$_POST[nome]\n";
$msg .= "E-mail: \t$_POST[\n";](mailto:)
[$msg .= "Assunto: \t$_POST[assunto]\n";](mailto:)
[$msg .= "Mensagem: \t$_POST[mensagem]\n\n";](mailto:)
[$cabecalho = "From: $_POST[nome]\n";](mailto:)
[$cabecalho .= "Reply-To: $_POST](mailto:)[\n\n";](mailto:)
[if(mail("contato@aforcadobem.com.br", "Formulario de Contato - www.aforcadobem.com.br", $msg, $cabecalho)){echo "(\"Sua mensagem foi enviada com sucesso em breve retornaremos esta mensagem.\");history.go(jkgigy-1);\n";}else{echo "alert(\"Ocorreu um erro ao tentar enviar sua mensagem.\");history.go(-1);\n";}}](mailto:)
[php?>](mailto:)
Carregando comentários...