Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
:blink:
Estou com problemas neste código...mas a sintaxe parece estar normal.....
Já fiz de tudo e continua dando erro na linha 12 (esta linha questá colorida)
<?php
if(isset($_POST['submit'])) {
//Recebendo os Dados do Form
$nome = strip_tags(trim($_POST['Nome']));
$email = strip_tags(trim($_POST['E-mail']));
$assunto = strip_tags(trim($_POST['Assunto']));
$mensagem = strip_tags(trim($_POST['Mensagem']));
$header ="From: §nome <§email>";
mail ($seu comentario,$assunto,$mensagem,$header);
}
?>
<!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%22)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
}
-->
</style></head>
<body>
<?
if(isset($_POST['submit'])) {
echo "Obrigado. Sua Mensagem foi enviada Corretamente!!";
?>
<form id="form1" name="form1" method="post" action="">
<label><span class="style1">Nome:
<input type="text" name="textfield" />
</span></label>
<p class="style1">E-mail:
<label>
<input type="text" name="textfield2" />
</label>
</p>
<p><span class="style1">Assunto:</span>
<label>
<input type="text" name="textfield3" />
</label>
</p>
<p class="style1">Seu Comentário:
<label>
<select name="select">
<option value="sttrjr@terra.com.br">Sugestões</option>
<option value="sttrjradministrativo@terra.com.br">Reclamações</option>
</select>
</label>
</p>
<p class="style1">Mensagem:</p>
<p class="style1">
<label>
<textarea name="textfield4" cols="40" rows="6"></textarea>
</label>
</p>
<p class="style1">
<label>
<input type="submit" name="Submit" value="Enviar" />
</label><label>
</label></p>
<div align="left"></div><p class="style1"><label><div align="center">
</label>
</form>
</body>
</html>Carregando comentários...