Suche auf lima-city
-
in: Zeilenumbrüche Problem
geschrieben von phpgiufo
Hallo,
Ich hab ein Problem mein problem ist Die zeilenumbrüche nicht gehen.
Könnt ihr mir helfen warum das nicht geht.?
Ist mir so in die Datenbank reingeschrieben.
---> Hallo,<br />Max.<br />:-)
Wo ist der Feher.=?
schreiben.HTML
<html> <head> <title>Gästebuch mit PHP</title> <link rel="stylesheet" type="text/css" href="css/design.css" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> </head> <body> <h1>Anfrage an den Support</h1> <fieldset> <legend>Neuer Eintrag</legend> <form action="senden.php" method="post"> <p>Dein Name:<br /><input type="text" name="name" /><br /> <br /> Dein Mail:<br /><input type="text" name="mail" /> </p> <p>Betreff:<br /><input type="text" name="Betreff:" id="Betreff:" /><br /> <label for="Kontaktformular">Kontaktformular <br> </label> <select name="Kontaktformular" id="Kontaktformular"> <option selected>bitte wählen</option> <option>Sonstiges und Kontakt</option> <option>Belästigung melden</option> <option>Spiel Bezogenes Problem</option> </select> <br /> Dein Text:<br /> <textarea name="nachricht" id="area"></textarea> <br /><br /> <input type="submit" value="Eintragen"> </p> </form> </fieldset> </body> </html>
senden.php
if($name == "" or $mail == "" or $nachricht == "" or $Kontaktformular == "") { echo "Du hast die Felder nicht ausgefüllt..."; } else { include '../mysql/support.php'; $id = 0; $abfrage = "SELECT id FROM support ORDER BY id DESC LIMIT 1"; $ergebnis = mysql_query($abfrage); while($row = mysql_fetch_object($ergebnis)) { $id = $row->id; } $id++; $timestamp = time(); $datum = date("d.m.Y", $timestamp); $nachricht = str_replace("ä", "ä", $nachricht); $nachricht = str_replace("Ä", "Ä", $nachricht); $nachricht = str_replace("ö", "ö", $nachricht); $nachricht = str_replace("Ö", "Ö", $nachricht); $nachricht = str_replace("ü", "ü", $nachricht); $nachricht = str_replace("Ü", "ü", $nachricht); $nachricht = str_replace("ß", "ß", $nachricht); $nachricht = str_replace("<", "< ", $nachricht); $nachricht = str_replace(">", "> ", $nachricht); $nachricht = str_replace("\r\n", "<br />", $nachricht); $name = str_replace("ä", "ä", $name); $name = str_replace("Ä", "Ä", $name); $name = str_replace("ö", "ö", $name); $name = str_replace("Ö", "Ö", $name); $name = str_replace("ü", "ü", $name); $name = str_replace("Ü", "ü", $name); $name = str_replace("ß", "ß", $name); $name = str_replace("<", "< ", $name); $name = str_replace(">", "> ", $name); $eintrag = "INSERT INTO support (id, name, mail, nachricht, datum, Kontaktformular ) VALUES ('$id', '$name', '$mail', '$nachricht', '$datum', '$Kontaktformular ')"; $eintragen = mysql_query($eintrag); if($eintragen = true) { ?> <p>Vielen Dank. Dein Eintrag wurde gespeichert...</p> <p><a href="index.php">Zurück</a></p> <?php } else { echo "Fehler im System. Konnte nicht gespeichert werden..."; } mysql_close($verbindung); } ?> </body> </html>