Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

André - Editor

[Resolvido] Formulario em flash e php envia texto com formatação.

Recommended Posts

Tenho um formulário em uma animação flash que possui variables setadas...

 

 

No form.php eu tenho:

<?php
$msg.='Nome:'.$_POST['nome']."\n";

$msg.='Email:'.$_POST['mail']."\n";

$msg.='Telefone:'.$_POST['telefone']."\n";

$msg.='Estado:'.$_POST['estado']."\n";

$msg.='Mensagem:'.$_POST['msg']."\n";

mail("andre@greenrabbit.com.br" , "CONTATO" , $msg);
?>

 

 

A mensagem chega certinho mas o problema é que ela chega assim:

 

Nome:<TEXTFORMAT LEADING="2"><P ALIGN="JUSTIFY"><FONT FACE="Arial" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">Andre</FONT></P></TEXTFORMAT>

Email:<TEXTFORMAT LEADING="2"><P ALIGN="JUSTIFY"><FONT FACE="Arial" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">email@gmail.com</FONT></P></TEXTFORMAT>

Telefone:<TEXTFORMAT LEADING="2"><P ALIGN="JUSTIFY"><FONT FACE="Arial" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">(21) 2222-2222</FONT></P></TEXTFORMAT>

Estado:<TEXTFORMAT LEADING="2"><P ALIGN="JUSTIFY"><FONT FACE="Arial" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">Rio de Janeiro</FONT></P></TEXTFORMAT>

Mensagem:<TEXTFORMAT LEADING="2"><P ALIGN="JUSTIFY"><FONT FACE="Arial" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">esta eh uma msg de teste</FONT></P></TEXTFORMAT>

 

 

 

Ela chega contendo toda a formatação de texto... :/

 

Alguém sabe como resolveR?

Compartilhar este post


Link para o post
Compartilhar em outros sites

Tenho um formulário em uma animação flash que possui variables setadas...

 

 

No form.php eu tenho:

<?php
$msg.='Nome:'.$_POST['nome']."\n";

$msg.='Email:'.$_POST['mail']."\n";

$msg.='Telefone:'.$_POST['telefone']."\n";

$msg.='Estado:'.$_POST['estado']."\n";

$msg.='Mensagem:'.$_POST['msg']."\n";

mail("andre@greenrabbit.com.br" , "CONTATO" , $msg);
?>

 

 

A mensagem chega certinho mas o problema é que ela chega assim:

 

Nome:<TEXTFORMAT LEADING="2"><P ALIGN="JUSTIFY"><FONT FACE="Arial" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">Andre</FONT></P></TEXTFORMAT>

Email:<TEXTFORMAT LEADING="2"><P ALIGN="JUSTIFY"><FONT FACE="Arial" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">email@gmail.com</FONT></P></TEXTFORMAT>

Telefone:<TEXTFORMAT LEADING="2"><P ALIGN="JUSTIFY"><FONT FACE="Arial" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">(21) 2222-2222</FONT></P></TEXTFORMAT>

Estado:<TEXTFORMAT LEADING="2"><P ALIGN="JUSTIFY"><FONT FACE="Arial" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">Rio de Janeiro</FONT></P></TEXTFORMAT>

Mensagem:<TEXTFORMAT LEADING="2"><P ALIGN="JUSTIFY"><FONT FACE="Arial" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">esta eh uma msg de teste</FONT></P></TEXTFORMAT>

 

 

 

Ela chega contendo toda a formatação de texto... :/

 

Alguém sabe como resolveR?

Veja esse tópico!

Provavelmente é problema no flash e não no PHP!

Abraço!

Compartilhar este post


Link para o post
Compartilhar em outros sites

Bom, eu não encontrei o problema no flash, mas um amigo meu aqui encontrou a solução no PHP:

 

 

Basta colocar assim:

 

<?php
$msg.='Nome: '.strip_tags($_POST['nome'])."\n";

$msg.='Email: '.strip_tags($_POST['mail'])."\n";

$msg.='Telefone: '.strip_tags($_POST['telefone'])."\n";

$msg.='Estado: '.strip_tags($_POST['estado'])."\n";

$msg.='Mensagem: '.strip_tags($_POST['msg'])."\n";

mail("andre@greenrabbit.com.br" , "CONTATO" , $msg);
?>

Abraços e obrigado ao pessoal que tentou ajudar ae!!!

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.