Hi All, I'm a newbie in php, and I just build my first web site www.forma3d.pl
When you go to "kontakt" page and submit the form a screen shows up and (it should read but it does not) reads "Twoja wiadomość została przesłana do Forma 3D. Odpowiemy tak szybko, jak będzie to możliwe. Pozdrawiamy.
Za kilka sekund powrócisz do Forma 3D." Instead of ś,ć,ł,ó,ę,ż I get some kind of scandinavian characters. Please go to the site: http://www.forma3d.pl/kontakt.html and send a form if you have to. Thanks in advance.
Here is the code:
<?php
/ Email Variables /
$emailSubject = 'contactformprocess!';
$webMaster = 'forma3d@forma3d.pl';
/ Data Variables /
$email = $POST['email'];
$name = $POST['name'];
$comments = $_POST['comments'];
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Email: $email <br>
Comments: $comments <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);
/ Results rendered as HTML /
$theResults = <<<EOD
<html>
<head>
<title>sent message</title>
<meta http-equiv="refresh" content="5;URL=http://www.forma3d.pl/kontakt.html">
<style type="text/css">
<!--
body {
background-color: #444;
font-family: Century Gothic;
font-size: 20px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #7cc242;
text-decoration: none;
padding-top: 200px;
margin-left: 150px;
width: 800px;
}
-->
</style>
</head>
<div align="center"> Twoja wiadomość została przesłana do Forma 3D. Odpowiemy tak szybko, jak będzie to możliwe. Pozdrawiamy.
Za kilka sekund powrócisz do Forma 3D. !</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>
cheers