Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> mail() i html pod spodem. Prosze o pomoc!, nie chce dzialc mail po wyslaniu
malwin23
post
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 30.10.2005

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


Witam!
Mam taki dziwny problem otoz:
Mam formularz, ktory wysyla poczte za pomoca pliku mail.php, pod cala funkcja mail jest jeszcze troche kodu html, czy to ten kod przeszkadza zeby poczta do mnie docierala?

oto plik mail.php

  1. <?php 
  2.  
  3. $name = $_POST['name']; 
  4. $comments = $_POST['comments']; 
  5.  
  6. mail("master_malwin@interia.pl", "Masz nowy email!", "Jakis ludzik przyslal Ci nowa wiadomosc!nnImie: $namennNapisal:n$comments"); 
  7. echo "<p>Dziekuje za wyslanie wiadomosci</p>"; 
  8.  
  9. ?> 
  10.  
  11. <meta http-equiv="Content-Language" content="pl"> 
  12.  
  13. <TITLE>Moja stronka</TITLE>
  14. <LINK REL=STYLESHEET HREF="../../utility/main.css" TYPE="text/css"> 
  15. <META HTTP-EQUIV="Refresh" CONTENT="10;URL=http://.."> 
  16.  
  17. <script LANGUAGE="JavaScript"><!-- 
  18. function redirect () { setTimeout("go_now()",5000); } 
  19. function go_now ()  { window.location.href = "http://........."; } 
  20. //--></SCRIPT> 
  21.  
  22.  
  23. <BODY onLoad="redirect()" bgcolor="#C0C0C0" style="text-align: center"> 
  24.  
  25.  
  26. <table border="0" width="605" height="49" bgcolor="#FF0000"> 
  27. <tr> 
  28. <td height="49" width="60%"> 
  29. <table border="0" cellpadding="3" cellspacing="3" height="100%" width="599"> 
  30.  
  31. <tbody><tr><td height="110" width="587"> 
  32. <table align="center" border="0" cellpadding="0" cellspacing="0" height="110" width="587"> 
  33. <tbody><tr> 
  34. <td width="9" height="9"><img src="images 
  35. /top_left.gif" height="9" width="9"></td> 
  36. <td background="images 
  37. /top_bg.gif" width="569" height="9" colspan="3"></td> 
  38. <td width="9" height="9"><img src="images 
  39. /top_right.gif" height="9" width="9"></td> 
  40. </tr> 
  41. <tr> 
  42. <td align="top" background="images 
  43. /left_bg.gif" rowspan="3">&nbsp;</td> 
  44. <td bgcolor="#eef9fd" width="296" rowspan="3"> 
  45. <table border="0" cellpadding="0" cellspacing="0"> 
  46. <tbody><tr> 
  47. <td style="text-align: center;" width="90"> 
  48.  
  49. &nbsp;<table align="center" border="0" width="90"><tbody><tr><td> 
  50. &nbsp;</td></tr></tbody></table> 
  51. </td><td width="5"></td><td width="170"> 
  52. <table border="0" cellpadding="0" cellspacing="2" width="100%"> 
  53. <tbody><tr> 
  54.  
  55. <td><div style="font-size: 11px; color: rgb(0, 0, 0); padding-left: 1px;"> 
  56. &nbsp;</div></td></tr> 
  57. <tr> 
  58. <td background="images 
  59. /dash.gif" height="1" valign="top" width="100%"> 
  60. <img src="images 
  61. /spacer.gif" border="0" height="1" width="1"></td> 
  62. </tr>  
  63. <tr> 
  64. <td> 
  65. <div style="font-size: 10px; color: rgb(102, 102, 102); padding-left: 1px;"> 
  66. <font size="3">Wiadomość została 
  67. wysłana! Czas oczekiwania na jej 
  68. publikacje do 24 godzin.</font></div> 
  69.  
  70. </td> 
  71. </tr> 
  72. <tr> 
  73. <td background="images 
  74. /dash.gif" height="1" valign="top" width="100%"> 
  75. <img src="images 
  76. /spacer.gif" border="0" height="1" width="1"></td> 
  77. </tr> 
  78. <tr> 
  79. <td width="100%"><div style="color: rgb(0, 0, 0); padding-left: 1px;"> 
  80. &nbsp;</div></td> 
  81. </tr> 
  82.  
  83.  
  84. </tbody></table> 
  85. </td> 
  86. </tr> 
  87. </tbody></table> 
  88. </td> 
  89. <td bgcolor="#eef9fd" width="230"> 
  90. &nbsp;</td> 
  91.  <td bgcolor="#eef9fd" width="43"> 
  92. &nbsp;</td> 
  93. <td background="images 
  94. /right_bg.gif" rowspan="3"></td> 
  95.  
  96. </tr> 
  97. <tr> 
  98. <td bgcolor="#eef9fd" width="230"> 
  99. <p align="center">Za 5 sekund zostaniesz przeniesiony na stronę główną!</td> 
  100. <td bgcolor="#eef9fd" width="43"> 
  101. &nbsp;</td> 
  102. </tr> 
  103. <tr> 
  104. <td bgcolor="#eef9fd" width="230"> 
  105. &nbsp;</td> 
  106. <td bgcolor="#eef9fd" width="43"> 
  107. &nbsp;</td> 
  108. </tr> 
  109. <tr> 
  110. <td height="9"><img src="images 
  111. /bottom_left.gif" height="9" width="9"></td> 
  112. <td background="images 
  113. /bottom_bg.gif" height="9" colspan="3"></td> 
  114. <td height="9"><img src="images 
  115. /bottom_right.gif" height="9" width="9"></td> 
  116. </tr> 
  117. </tbody></table></td> 
  118. </tr></tbody></table></td> 
  119. </tr> 
  120. </table>


Czy moze ktos mi pomoc rozwiazac ten problem, bardzo bym byl wdzieczny, chyba nie ma zadnych ograniczen, jezeli chodzi o wstawianie "htmla" do plikow php?
Go to the top of the page
+Quote Post
dtb
post
Post #2





Grupa: Zarejestrowani
Postów: 476
Pomógł: 1
Dołączył: 5.11.2005
Skąd: Bieruń city

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


1. naucz sie jednego. to php za pomoca tagow <?php i ?> jest wstawiane do html-a a to jest duza roznica.
2. a z punktu 1 wynika ze interpretator php widzi tylko to co jest pomiedzy tymi tagami, wiec jak kod html moze wplywac na poprawnosc wysylania
Go to the top of the page
+Quote Post

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 - 07:34