Problem mit Datei Download

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Problem mit Datei Download

    Hallo,

    Ich habe ein problem mit dem Datei Download, die Datei wird ja geladen, blos dort werden komischerweise die CSS daten von der Homepage mit eingetragen, hat vllt. jemand eine Idee?

    Quellcode

    1. header("Content-type: ".mime_content_type($dateipfad));
    2. header("Content-Disposition: attachment; filename=$d_entry[dateiname]");
    3. header("Content-Transfer-Encoding: binary");
    4. header("Cache-Control: post-check=0, pre-check=0");
    5. readfile($dateipfad,filesize($dateipfad));
  • Es handelt sich um eine .php Datei, so ist der inhalt der datei:

    Quellcode

    1. <html>
    2. <form action="blubb.php" method="post">
    3. Hm:<input type="text" name="blubb">
    4. <br/>
    5. <br/>
    6. <input type="submit" value="schicken">
    7. </html>
    8. <br/>
    9. <br/>
    10. <?php
    11. $db->query("INSERT INTO bb".$n."_blubb(blubb) VALUES ('".$_POST['blubb']."')");
    12. ?>
    13. <html>
    14. <head>
    15. <title>WorldScripting - Downloads</title>
    16. <style type="text/css">
    17. .tableout {
    18. cellspacing: 1px;
    19. bordercolor: #000000;
    20. border-style: solid;
    21. border: 1px;
    22. }
    23. .schriftkleinschwarz {
    24. font-family: Verdana, Arial, Helvetica, sans-serif;
    25. font-size: 10px;
    26. font-style: normal;
    27. font-weight: lighter;
    28. font-variant: normal;
    29. color: #000000;
    30. link="#000000"
    31. vlink="#000000"
    32. alink="#000000"
    33. }
    34. .schriftkleinwhite {
    35. font-family: Verdana, Arial, Helvetica, sans-serif;
    36. font-size: 10px;
    37. font-style: normal;
    38. font-weight: lighter;
    39. font-variant: normal;
    40. color: #FFFFFF;
    41. }
    42. .schriftkleinredbick {
    43. font-family: Verdana, Arial, Helvetica, sans-serif;
    44. font-size: 10px;
    45. font-style: normal;
    46. font-weight: bold;
    47. font-variant: normal;
    48. color: #CC0000;
    49. }
    50. .schriftkleingreenbick {
    51. font-family: Verdana, Arial, Helvetica, sans-serif;
    52. font-size: 10px;
    53. font-style: normal;
    54. font-weight: bold;
    55. font-variant: normal;
    56. color: #113355;
    57. }
    58. .bodyblauklein {
    59. font-family: Verdana, Arial, Helvetica, sans-serif;
    60. font-size: 7pt; color: #69849F
    61. }
    62. .schriftkleinschwarzbig {
    63. font-family: Verdana, Arial, Helvetica, sans-serif;
    64. font-size: 10px;
    65. font-style: normal;
    66. font-weight: bold;
    67. font-variant: normal;
    68. color: #113355;
    69. link="#000000"
    70. vlink="#000000"
    71. alink="#000000"
    72. }
    73. a.normal:link {
    74. font-family:Verdana,Arial,Helvetica;
    75. font-size:10px;
    76. font-weight:700;
    77. text-decoration:none;
    78. color:#99CC33;
    79. }
    80. a.normal:visited {
    81. font-family:Verdana,Arial,Helvetica;
    82. font-size:10px;
    83. font-weight:700;
    84. text-decoration:none;
    85. color:#99CC33;
    86. }
    87. a.normal:active {
    88. font-family:Verdana,Arial,Helvetica;
    89. font-size:10px;
    90. font-weight:700;
    91. text-decoration:none;
    92. color:#99CC33;
    93. }
    94. a.normal:hover {
    95. font-family:Verdana,Arial,Helvetica;
    96. font-weight:700;
    97. text-decoration:underline;
    98. color:#99CC33;
    99. USW. wird zu groß
    Alles anzeigen


    und so soll es aussehen:

    Quellcode

    1. <html>
    2. <form action="blubb.php" method="post">
    3. Hm:<input type="text" name="blubb">
    4. <br/>
    5. <br/>
    6. <input type="submit" value="schicken">
    7. </html>
    8. <br/>
    9. <br/>
    10. <?php
    11. $db->query("INSERT INTO bb".$n."_blubb(blubb) VALUES ('".$_POST['blubb']."')");
    12. ?>
    Alles anzeigen


    Schon komisch...