Asunto: Formulario enviado a trav?s de Flash(Aquí el problema no se envían los acentos y las ñ)
De: [email protected]
Mensaje:
Aquí están tus datos ->
Usuario: Hernández
Contraseña: doñapancha (En el campo mensaje si se muestran los acentos y las ñ)
Aquí mi código php, y hángame saber, porfavor, en qué estoy mal, ya lo intenté de varias maneras y he estado todo este día tratando de resolver el problema...
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Te responderemos pronto :)</title>
</head>
<body>
<?php
$to='[email protected]';
$subject=utf8_decode("Mensaje enviado a través de Flash Player :D \r\n");
$number=$_POST['math'];
$name=$_POST['senderName'];
$email=$_POST['senderEmail'];
$phone=$_POST['senderPhone'];
$comments=$_POST['senderMsg'];
$signUp=$_POST['signUp'];
$headers = "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/html; charset=iso-8859-1 \r\n";
$headers .= "De: Dominio<hosting@dominio>\r\n";
$message=" Tus datos<br> Nombre: ".$name. "\r\n" . "Email: " .$email . "\r\n" . "Teléfono: " .$phone."\r\n"."Comentario: ".$comments. "\r\n"."Registro: ".$signUp;
mail($to,utf8_decode($subject),utf8_decode($message),$headers);
?>
</body>
</html>