Last active
March 19, 2016 02:17
-
-
Save gabrielfranh/5a95ff17d8365b532169 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$to="meuemail@email.com"; | |
$nome=$_POST['nome']; | |
$email=$_POST['email']; | |
$assunto=$_POST['assunto']; | |
$telefone=$_POST['telefone']; | |
$mensagem=$_POST['mensagem']; | |
$body="<strong>Mensagem de contato</strong> <br/><br/>"; | |
$body="<strong>Nome:</strong> <br/><br/> $nome"; | |
$body="<strong>E-mail:</strong> <br/><br/> $email"; | |
$body="<strong>Assunto:</strong> <br/><br/> $assunto"; | |
$body="<strong>Telefone</strong> <br/><br/> $telefone"; | |
$body="<strong>Mensagem:</strong> <br/><br/> $mensagem"; | |
$header ="Content-Type: text/html; charset=utf-8"; | |
mail ( $to, $assunto, $body, $header ); | |
header ("location:index.html?msg=enviado"); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section> | |
<form method="POST" action="enviar.php"> | |
<div class="row 50%"> | |
<div class="6u 12u(mobile)"> | |
<input type="text" name="nome" id="contato-nome" placeholder="Nome" required="" /> | |
</div> | |
<div class="6u 12u(mobile)"> | |
<input type="email" name="email" id="contato-email" placeholder="E-mail" required="" /> | |
</div> | |
</div> | |
<div class="row 50%"> | |
<div class="6u 12u(mobile)"> | |
<input type="text" name="assunto" id="contato-assunto" placeholder="Assunto" required="" /> | |
</div> | |
<div class="6u 12u(mobile)"> | |
<input type="tel" name="telefone" id="contato-telefone" placeholder="Telefone ( com ddd )" required="" /> | |
</div> | |
</div> | |
<div class="row 50%"> | |
<div class="12u"> | |
<textarea name="mensagem" id="contato-mensagem" placeholder="Mensagem" rows="4" required="" ></textarea> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="12u"> | |
<ul class="actions"> | |
<li><input type="submit" class="style1" name="submit" value="Enviar"></li> | |
</ul> | |
</div> | |
</div> | |
</form> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment