KOD (kodowanie strony to UTF-8 (BEZ BOM)):
....
<form name="form1" method="post" action="send_contact.php" style="float: left;"> Temat: <br /> <input name="subject" type="text" id="subject" style="width: 265px;"> <br /> <br /> Wiadomość: <br /> <textarea name="detail" style="width: 260px;" rows="2" id="detail"></textarea> <br /> <br /> Imię i nazwisko: <br /> <input name="name" type="text" id="name" style="width: 265px;"> <br /> <br /> E-mail: <br /> <input name="customer_mail" type="text" id="customer_mail" style="width: 265px;"> <br /> <br /> <br /> <input type="submit" name="Submit" value="Wyślij"> <input type="reset" name="Submit2" value="Wyczyść"> </form>
kod w pliku send_contact.php (kodowanie to UTF-8 (BEZ BOM)):
<?php // Subject of the email $subject = $_POST['subject']; // Details/questions/messages $message = $_POST['detail']; // Name of sender $name = $_POST['name']; //email of sender $mail_from = $_POST['customer_mail']; //From $header = "from: $name\r\n$name\n$mail_from"; $header .= "\nContent-type: text/plain; charset=utf-8\r\n"; // Email address $to = "MOJ ADRES EMAIL"; if($send_contact) else ?>
Nie wiem co jeszcze moge zrobic by pl znaki zaczely funkcjonowac. Prosze o pomoc.