..:: MX Studio Fóruns ::..: Erro em form - ..:: MX Studio Fóruns ::..

Jump to content

Publicidade




ATENÇÃO

Para evitar posts desnecessários e que não influam para o andamento e desenvolvimento do fórum, clique aqui e leia todas as regras.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Erro em form

#1 User is offline   TiTi Celestino 

  • Group: Membros
  • Posts: 5198
  • Joined: 13-February 05

Posted 30 April 2005 - 03:09 PM

Fiz um form de contato simples só q tá apresentando erro

ai o código

Contato.php
CODE

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
background-color: #999999;
margin-top:0;
}
.style1 {
font-family: Arial;
font-size: 11px;
}
-->
</style></head>
<body>

<table width="356" border="0">
 <tr>
   <td width="350"><img src="images/barrinha_fale.gif" width="350" height="14"></td>
 </tr>
</table>

<table width="354" border="0">
 <tr>
   <th width="348" scope="col">
<form name="fale_conosco" method="post" action="form.php" id="formulario_contato" enctype="application/x-www-form-urlencoded">
     <div align="left">
       <p><span class="style1">Nome:</span><br>
           <input name="nome" type="text" class="style1" id="nome" size="45">
           <br>
           <span class="style1">Email:</span><br>
         <input name="email" type="text" class="style1" id="email" size="45" >
       </p>
       <p class="style1">Voc&ecirc; gostou do Slipknot Bahia?<br>
         <input name="opiniao" type="radio" value="sim" checked>
         <span class="style1">Sim</span>    
         <input name="opiniao" type="radio" value="nao">
         <span class="style1">N&atilde;o</span></p>
       <p><span class="style1">Seu coment&aacute;rio:
       </span>          <textarea name="mensagem" cols="50" rows="5" class="style1" id="mensagem"></textarea>
       <br>
       <br>
         <input name="enviar" type="submit" id="enviar" value="Enviar">
</p>
       </div>
   </form></th>
 </tr>
</table>
</body>
</html>


form.php
PHP

<html>
<head>
<style type="text/css">
<!--
body {
    background-color: #999999;
}
-->
</style>
<body>
<?
/* Inicio do código do PHP para Formulario */
$msg = "Nome do usuário: \t$nome\n";
$msg = "Email do usuario: \t$email\n";
$msg = "Opinião do usuario:\t$opiniao\n";
$msg = "Mensagem do usuario:\t$mensagem\n\n";

$cabecalho = "Para Slipknot Bahia:\n";
$cabecalho = "Cc:$email\n\n";

mail("tiagocelestino@click21.com.br", "Formulário de Contato", $msg, $cabecalho);
echo
"<br><br>";
echo
"<p align=center><font face=arial size=3>Obrigado por entrar em contato</font></p>\n";
echo
"<p align=center><font face=arial size=4px color=#000000>O Slipknot Bahia Agradece pela sua sugestão</font></p>";
/* Final do código PHP */
?>
</body>
</head>
</html>


O erro apresentado é

Warning: Unknown error in D:\FoxServ\www\Slipknot Bahia\form.php on line 21

A linha 21 é mail(..........)
O q está acontecendo alegre.gif
0

#2 User is offline   Juscilesio 

  • Group: Membros
  • Posts: 345
  • Joined: 25-January 05

  Posted 30 April 2005 - 03:34 PM

Aê cara Blzinha! thumbsup.gif
É o seguiten vou te falar uma coisa porém não tenho certeza...
Esse erro ta sendo mostrado pq a função "mail()" é nativa do linux...
ou seja ele utiliza alguma "biblioteca" do proprio SO
...
Dê uma lida nesse nesse tópico que terá mais detalhes!

http://br2.php.net/manual/pt_BR/ref.mail.php


Valeuz! thumbup.gif
0

#3 User is offline   TiTi Celestino 

  • Group: Membros
  • Posts: 5198
  • Joined: 13-February 05

Posted 30 April 2005 - 11:25 PM

Valeu man, vou ler isso pra ve se resolvo thumbsup.gif
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic



Publicidade




1 User(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)