Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Formularz polskie znaki
Forum PHP.pl > Forum > PHP
Rufus_84
Witam.
Posiadam formularz na stronie. W przypadku niewłaściwego wypełnienia pól otrzymuję komunikat : Prosimy o wypełnienie pól zaznaczonych kolorem czerwonym:

Komunikat nie wyświetla polskich znaków: Prosimy o wype?nienie p�l zaznaczonych kolorem czerwonym

Pozostała część strony jest wyświetlana prawidłowo. Również na stronie jest drugi formularz korzystający z tego samego skryptu i wyświetla znaki polskie prawidłowo.
Ponadto po wrzuceniu strony na localhost wszystko działa.

Z góry dziękuję za pomoc.

Rafał
Michael2318
W momencie wypluwania tego komunikatu, ważne są nagłówki html:

  1. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


dodatkowo, plik w którym ten tekst jest ujęty, powinien być zapisany w formacie UTF-8 bez BOM.

Jeśli wszystko co wyżej napisałem się zgadza to musisz zapodać kod.
Rufus_84
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Polanglia Transport Ltd • Zapytanie ofertowe</title>
  6. <meta name="description" content="Jeśli chcesz złożyć zamówienie na transport pomiędzy Anglią a Polską wypełnij formularz i wyślij."/>
  7. <meta name="google-site-verification" content="yT6b3I0A8iMoUQOSr4omC-NIESpuoNpG0tFHpbih2vs" />
  8. <link rel="stylesheet" href="css/style.css" type="text/css" />
  9. <!--[if IE 6]>
  10. <link rel="stylesheet" href="css/style-ie6.css" type="text/css" />
  11. <![endif]-->
  12. <!--[if IE 7]>
  13. <link rel="stylesheet" href="css/style-ie7.css" type="text/css" />
  14. <![endif]-->
  15. <script type="text/javascript" src="js/swfobject.js"></script>
  16. <script type="text/javascript" src="js/lightbox.js"></script>
  17. <script src="./js/cufon-yui.js" type="text/javascript"></script>
  18. <script src="./js/Segoe_UI_700.font.js" type="text/javascript"></script>
  19. <script type="text/javascript">
  20. Cufon.replace('h1');
  21. Cufon.replace('h2');
  22. Cufon.replace('h3');
  23. </script>
  24.  
  25. <script language="javascript" type="text/javascript">
  26. var win=null;
  27. function NewWindow(mypage,myname,w,h,pos,infocus){
  28. if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
  29. if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/1:100;}
  30. else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
  31. settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,
    resizable=no";win=window.open(mypage,myname,settings);
  32. win.focus();}
  33.  
  34.  
  35. function ustaw_klasa()
  36. {
  37. document.slub_form.nazwa12.value='Nie dotyczy';
  38. document.slub_form.nazwa12a.value='Nie dotyczy';
  39. document.slub_form.nazwa12b.value='Nie dotyczy';
  40. }
  41.  
  42. function ustaw_klasa_back()
  43. {
  44. document.slub_form.nazwa12.value='';
  45. document.slub_form.nazwa12a.value='';
  46. document.slub_form.nazwa12b.value='';
  47. }
  48. function ustaw_ubezp()
  49. {
  50. document.slub_form.nazwa13.value='zero';
  51. }
  52. function ustaw_ubezp_back()
  53. {
  54. document.slub_form.nazwa13.value='';
  55. }
  56.  
  57. function drukowanie()
  58. {
  59. document.slub_form.action="zapytanie-d.php";
  60. document.slub_form.target="_blank";
  61. document.slub_form.submit();
  62. document.slub_form.target="_self";
  63. document.slub_form.action="?";
  64.  
  65. }
  66. </script>
  67. <script type="text/javascript">
  68.  
  69. /***********************************************
  70. * Textarea Maxlength script- Š Dynamic Drive (www.dynamicdrive.com)
  71. * This notice must stay intact for legal use.
  72. * Visit <a href="http://www.dynamicdrive.com/" target="_blank">http://www.dynamicdrive.com/</a> for full source code
  73. ***********************************************/
  74.  
  75. function ismaxlength(obj){
  76. var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
  77. if (obj.getAttribute && obj.value.length>mlength)
  78. obj.value=obj.value.substring(0,mlength)
  79. }
  80.  
  81. </script>
  82.  
  83. </head>
  84.  
  85. <body class="body2">
  86.  
  87. <div id="strona" class="tekst">
  88.  
  89. <div id="top">
  90.  
  91. <div id="jezyki">
  92. <?php include('include/jezyki.php'); ?>
  93. </div>
  94.  
  95. <div id="logo-menu">
  96.  
  97. <div id="logo">
  98. <?php include('include/logo.php'); ?>
  99. </div>
  100.  
  101. <div id="menu">
  102. <?php include('include/menu.php'); ?>
  103. </div>
  104.  
  105. </div>
  106.  
  107.  
  108.  
  109. </div>
  110.  
  111. <div id="srodek">
  112.  
  113. <div id="flash-glowna" class="ciezarowki2"><div class="obokflasha">Ubezpieczenie ładunków</div>
  114.  
  115.  
  116.  
  117. <div id="flashcontent1">
  118. Brak zainstalowanej wtyczki FLASH. <br />
  119. Aby pobrać najnowszą wersję Adobe Flash Player kliknij link:
  120. <a href='http://get.adobe.com/flashplayer/'>Pobierz wtyczkę</a>
  121. </div>
  122. <script type="text/javascript">
  123. //var so1 = new SWFObject("grafika/baner_e.swf", "baner", "924", "255", "8", "");
  124. var so1 = new SWFObject("grafika/baner2011_minimap2.swf?b", "baner", "412", "254", "8", "");
  125.  
  126. so1.write("flashcontent1");
  127. </script>
  128.  
  129.  
  130.  
  131. </div>
  132.  
  133.  
  134. <div id="lewa">
  135.  
  136.  
  137.  
  138. <div id="tresc">
  139.  
  140.  
  141. <h1>Zapytanie ofertowe</h1>
  142.  
  143.  
  144.  
  145. <div class="linia"></div>
  146.  
  147. <br/><br/>
  148. <?php
  149. require_once 'ekspresowastrona_includes/projects/phpmailer/class.phpmailer.php';
  150. ?>
  151.  
  152.  
  153. <?php /* Treść główna formularza Wykonanie: ekspresowastrona */
  154. require 'ekspresowastrona_includes/projects/zapytanie/index.php';
  155. ?>
  156.  
  157. <br/><br/><br/>
  158.  
  159. </div>
  160.  
  161. </div>
  162.  
  163.  
  164. <div id="prawa">
  165.  
  166.  
  167. <div id="box-uslugi">
  168. <?php include('include/box-ubezpieczenie.php'); ?>
  169. </div>
  170.  
  171. <div id="box-kontakt">
  172. <?php include('include/box-kontakt.php'); ?>
  173. </div>
  174.  
  175.  
  176.  
  177.  
  178.  
  179. </div>
  180.  
  181.  
  182. </div>
  183.  
  184. <div id="stopka2">
  185. <?php include('include/stopka2.php'); ?>
  186. </div>
  187.  
  188. </div>
  189.  
  190. </body>
  191. </html>
fate
wszystko co nas interesuje masz tu zaincludowane, wklej odpowiedni plik
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.