Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Formularz kontakotwy, polskie znaki, Brak znaków polskich w formularzu kontaktowym.
bovtek8
post
Post #1





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 22.08.2009

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


Witam, jest to skrypt formularza kontaktowego - wysyła wiadomości bez zarzutów tylko nie wyświetla polskich znaków. Wyczytałem że należy dopisać do kodu linijkę z kodem
  1. $headers = "Content-Type: text/html; charset=\"iso-8859-2\"\n";

mimo to nie wyświetla polskich znaków. Proszę o pomoc.

pełny kod znajduje się pod adresem: http://pokazywarka.pl/tbmgdx/

  1. <?
  2. // email for send submitted forms //////////////////////////////////////////
  3. // if empty, use value from form ('info@management-club.hr' field)
  4. $send_to = "info@management-club.hr>";
  5.  
  6.  
  7. $headers = "Content-Type: text/html; charset=\"iso-8859-2\"\n";
  8.  
  9.  
  10. // set $send_cc address if you need copy of mail to other addresses
  11. // for example: $send_cc = array('friend1@ccc.cc', 'friend2@ccc.cc');
  12. //
  13. $send_cc = array();
  14.  
  15. // Subject. if empty, use value from form ('subject' field)
  16. $subject = "info@management-club.hr";
  17.  
  18. // Allowed Referres. Should be empty or list of domains
  19. $referrers = array();
  20.  
  21. // Attachments
  22. $attachment_enabled = 1;
  23.  
  24. ////// Database - write CSV file with data of submitted forms //////////////
  25. $database_enabled = 0;
  26. $database_file = 'email.csv';
  27.  
  28. // Fields to collect
  29. // $database_fields = '*' - mean all fields, as in form
  30. // $database_fields = array('from', 'subject') - only 'from', 'subject' fields
  31. $database_fields = '*';
  32.  
  33. ////// Redirect user after submitting form
  34. $redirect_url = 'http://www.management-club.hr/uspjesno.htm';
  35.  
  36. ////// Auto-Responder
  37. ////// You can substitute any of form fields in response by using
  38. ////// %field_name% in response text.
  39. //////
  40. ?>

Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 23.08.2025 - 12:52