Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] Formularz - pomocy, problem z polskimi czcionkami
dragon74
post
Post #1





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 24.07.2007

Ostrzeżenie: (0%)
-----


witam, jestem poczatkujacy i prosze Was o pomoc
Zroblem we flashu formularz - dane wysyla do pliku tylko niestety zamiast polskich czcionek mam krzaczki, czy ktos moze mi powiedziec co jest nie z tym plikiem - kombinuje i kombinuje i nic:
  1. <title>mail</title>
  2. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
  3. </head>
  4. <?php
  5. $tresc = nl2br($tresc);
  6.  
  7. function stripPlChars($string){
  8. $string = str_replace('ą', 'a', $string);
  9. $string = str_replace('Ą', 'A', $string);
  10. $string = str_replace('ć', 'c', $string);
  11. $string = str_replace('ę', 'e', $string);
  12. $string = str_replace('Ę', 'ę', $string);
  13. $string = str_replace('ł', 'l', $string);
  14. $string = str_replace('Ł', 'ł', $string);
  15. $string = str_replace('ń', 'n', $string);
  16. $string = str_replace('Ń', 'N', $string);
  17. $string = str_replace('ó', 'ó', $string);
  18. $string = str_replace('Ó', 'O', $string);
  19. $string = str_replace('ś', 's', $string);
  20. $string = str_replace('Ś', 'S', $string);
  21. $string = str_replace('ź', 'z', $string);
  22. $string = str_replace('Ź', 'Z', $string);
  23. $string = str_replace('ż', 'z', $string);
  24. $string = str_replace('Ż', 'Z', $string);
  25. return $string;
  26. }
  27.  
  28. $tresc = nl2br($tresc);
  29.  
  30.  
  31. $msg .= "Od: ".stripPlChars($osoba) ." \n";
  32. $msg .= "Firma: ".stripPlChars($firma) ." \n";
  33. $msg .= "Adres: ".stripPlChars($adres) ." \n";
  34. $msg .= "tel: $tel \n";
  35. $msg .= "E-Mail: $email \n";
  36. $msg .= "Treść wiadomosci: \n";
  37. $msg .= "\n";
  38. $msg .= "".stripPlChars($tresc) ." \n";
  39. $msg .= "\n";
  40. $msg .= "\n";
  41. $msg .= "-----------------------------------------------------------------------";
  42. $msg .= "\n";
  43. $msg .= "Wiadomość została wygenerowana z formularza ";
  44. $msg .= "\n";
  45. $msg .= "----------------------------------------------------------------------";
  46. $msg .= "\n";
  47. $msg .= "\n";
  48. $odbiorca = "watras@gigasport.pl";
  49. $temat = "Kontakt ze strony www";
  50.  
  51. $mailheaders = "From: $email";
  52.  
  53. mail($odbiorca, $temat, $msg, $mailheaders);
  54. ?>
  55. </body>
  56. </html>


Ten post edytował dragon74 24.07.2007, 21:29:30
Go to the top of the page
+Quote Post

Posty w temacie
- dragon74   [php] Formularz - pomocy   24.07.2007, 17:28:41
- - strife   1. Dodaj do tematu tag, inaczej wątek zostan...   24.07.2007, 18:40:55


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 16:05