Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: problem z polska czcionką
Forum PHP.pl > Forum > Przedszkole
Carlos!
  1. Witam kolegów.
  2.  
  3. to moj pierwszy post na tym forum. Mam problem z formularzem, który chce umiescic na stronie, a mianowicie nie przesyła mi on polskich czcionek tylko jakies krzaczki... :( czy mozecie mi pomoc rozwiązac ten problem?
  4. <?
  5.  
  6.  
  7. // MAKE SURE DYNAFORM IS NOT BEING LOADED FROM THE URL
  8. if($HTTP_SERVER_VARS['REQUEST_METHOD'] == "GET") {
  9. <html>
  10. <head><title>DynaForm is installed correctly.</title></head>
  11. <body>
  12. <font style='font-family: verdana, arial; font-size: 9pt;'>
  13. <b>DynaForm is installed correctly.</b></font>
  14. </body></html>
  15. ";
  16. exit();
  17. }
  18.  
  19. // SET VARIABLES
  20. $incoming_fie[php]
  21. lds = array_keys($HTTP_POST_VARS);
  22. $incoming_values = array_values($HTTP_POST_VARS);
  23.  
  24. if($override == &#092;"no\") {
  25. $incoming_mailto = @$HTTP_POST_VARS['rec_mailto'];
  26. $incoming_subject = @$HTTP_POST_VARS['rec_subject'];
  27. $incoming_thanks = @$HTTP_POST_VARS['rec_thanks'];
  28. }
  29.  
  30. $incoming_mailto_cc = @$HTTP_POST_VARS['opt_mailto_cc'];
  31. $incoming_mailto_bcc = @$HTTP_POST_VARS['opt_mailto_bcc'];
  32. $form_url = @$HTTP_REFERER;
  33.  
  34. // MAKE SURE DYNAFORM IS BEING RUN FROM THE RIGHT DOMAIN
  35. if($secure_domain_on == &#092;"yes\") {
  36. $form_url_array = parse_url($form_url);
  37. $form_domain = $form_url_array[host];
  38. if($form_domain != $HTTP_SERVER_VARS[HTTP_HOST]) {
  39. ?>
  40. echo "<h2>DynaForm Error - Invalid Domain</h2>
  41. You have accessed DynaForm from an external domain - this is not allowed.<br>
  42. You may only submit forms to a DynaForm file that exists on the same domain name.<br>
  43. If you believe to be receiving this message in error, please refer to your readme.txt file.
  44. <br><br>";
  45. $error = "yes";
  46. }
  47. }
  48.  
  49. // CHECK IF MAILTO IS SET
  50. if($incoming_mailto == "") {
  51. echo "<h2>DynaForm Error - Missing Field</h2>
  52. Your form located at <a href='$form_url'>$form_url</a> does not work because you forgot to include
  53. the required \"<b>rec_mailto</b>\" field within the form. This field specifies who the email will
  54. be sent to.
  55. <br><br>
  56. This should look like:<br>
  57. <input type=\"hidden\" name=\"rec_mailto\" value=\"youremail@yoursite.com\">
  58. <br><br>
  59. If you are still confused, please refer to the readme.txt for more information and examples.<br><br><br><br>
  60. ";
  61. $error = "yes";
  62. }
  63.  
  64. // CHECK IF SUBJECT IS SET
  65. if($incoming_subject == "") {
  66. echo "<h2>DynaForm Error - Missing Field</h2>
  67. Your form located at <a href='$form_url'>$form_url</a> does not work because you forgot to include
  68. the required \"<b>rec_subject</b>\" field within the form. This field specifies the subject of
  69. the email that will be sent.
  70. <br><br>
  71. This should look like:<br>
  72. <input type=\"hidden\" name=\"rec_subject\" value=\"New DynaForm Email\">
  73. <br><br>
  74. If you are still confused, please refer to the readme.txt for more information and examples.<br><br><br><br>
  75. ";
  76. $error = "yes";
  77. }
  78.  
  79. // CHECK IF THANKS IS SET
  80. if($incoming_thanks == "") {
  81. echo "<h2>DynaForm Error - Missing Field</h2>
  82. Your form located at <a href='$form_url'>$form_url</a> does not work because you forgot to include
  83. the required \"<b>rec_thanks</b>\" field within the form. This field specifies what page the user
  84. will be taken to after they submit the form.
  85. <br><br>
  86. This should look like:<br>
  87. <input type=\"hidden\" name=\"rec_thanks\" value=\"thanks.html\">
  88. <br><br>
  89. If you are still confused, please refer to the readme.txt for more information and examples.<br><br><br><br>
  90. ";
  91. $error = "yes";
  92. }
  93.  
  94. // CHECK IF IP ADDRESS IS BANNED
  95. if($ban_ip_on == "yes") {
  96.  
  97. if(strstr($ban_ip_list, $HTTP_SERVER_VARS[REMOTE_ADDR])) {
  98. echo "<h2>DynaForm Error - Banned IP</h2>
  99. You cannot use this form because your IP address has been banned by the administrator.<br>
  100. ";
  101. $error = "yes";
  102. }
  103. }
  104.  
  105.  
  106. if($error == "yes") {
  107. exit();
  108. }
  109.  
  110. // SET EMAIL INTRODUCTION
  111. $message = "This email was received from your DynaForm located at $form_url \n\n";
  112.  
  113. // LOAD EMAIL CONTENTS
  114. for ($i = 0; $i < count($incoming_fields); $i++) {
  115. if($incoming_fields[$i] != "rec_mailto") {
  116. if($incoming_fields[$i] != "rec_subject") {
  117. if($incoming_fields[$i] != "rec_thanks") {
  118. if($incoming_fields[$i] != "opt_mailto_cc") {
  119. if($incoming_fields[$i] != "opt_mailto_bcc") {
  120.  
  121. // CHECK FOR REQUIRED FIELDS IF ACTIVATED
  122. if($required_on == "yes") {
  123. $sub = substr($incoming_fields[$i], 0, 2);
  124. if($sub == "r_") {
  125. if($incoming_values[$i] == "" OR !isset($incoming_values[$i]) OR $incoming_values[$i] == " ") {
  126. header("Location: $required_errorpage");
  127. exit();
  128. }}}
  129.  
  130. // ADD FIELD TO OUTGOING MESSAGE
  131. $message .= "$incoming_fields[$i]:\n$incoming_values[$i]\n\n";
  132. }}}}}}
  133.  
  134. // SET EMAIL FOOTER
  135. $message .= "\n\nThank you for using our Webligo DynaForm script.\nWe ask that you please link back to our site if you have not already.\nYour use of DynaForm is subject to the license agreement outlined in dynaform.php.\nVisit us at: http://www.webligo.com";
  136.  
  137. // CHECK FOR CC OR BCC
  138. $headers = "";
  139. if($incoming_mailto_cc != "") {
  140. $headers .= "Cc: $incoming_mailto_ccr\n";
  141. }
  142. if($incoming_mailto_bcc != "") {
  143. $headers .= "Bcc: $incoming_mailto_bccr\n";
  144. }
  145.  
  146. // SEND EMAIL
  147. mail($incoming_mailto, $incoming_subject, $message, $headers);
  148.  
  149. // SEND AUTO-RESPONSE IF ACTIVATED
  150. if($autorespond_on == "yes") {
  151. $autorespond_mailto = @$HTTP_POST_VARS[$autorespond_mailto_field];
  152. $autorespond_headers = "From: $autorespond_from";
  153. mail($autorespond_mailto, $autorespond_subject, $autorespond_contents, $autorespond_headers);
  154. }
  155.  
  156. // FORWARD TO THANK YOU PAGE
  157. header("Location: $incoming_thanks");
  158.  
  159. ?>
JoShiMa
A gdzie masz deklarację typu dokumentu:
http://www.kurshtml.boo.pl/html/html.html

i strony kodowej:
http://www.kurshtml.boo.pl/html/deklaracja...dowej,body.html
Lukez
Dodaj przed </head>

Cytat
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
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.