kostenloser Webspace werbefrei: lima-city


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&auml;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&uuml;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("ä", "&auml;", $nachricht);
    			$nachricht = str_replace("Ä", "&Auml;", $nachricht);
    			$nachricht = str_replace("ö", "&ouml;", $nachricht);
    			$nachricht = str_replace("Ö", "&Ouml;", $nachricht);
    			$nachricht = str_replace("ü", "&uuml;", $nachricht);
    			$nachricht = str_replace("Ü", "&uuml;", $nachricht);
    			$nachricht = str_replace("ß", "&szlig;", $nachricht);
    			$nachricht = str_replace("<", "<&nbsp;", $nachricht);
    			$nachricht = str_replace(">", ">&nbsp;", $nachricht);
    			$nachricht = str_replace("\r\n", "<br />", $nachricht);
    			
    			$name = str_replace("ä", "&auml;", $name);
    			$name = str_replace("Ä", "&Auml;", $name);
    			$name = str_replace("ö", "&ouml;", $name);
    			$name = str_replace("Ö", "&Ouml;", $name);
    			$name = str_replace("ü", "&uuml;", $name);
    			$name = str_replace("Ü", "&uuml;", $name);
    			$name = str_replace("ß", "&szlig;", $name);
    			$name = str_replace("<", "<&nbsp;", $name);
    			$name = str_replace(">", ">&nbsp;", $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&uuml;ck</a></p>
    				<?php
    			} else {
    				echo "Fehler im System. Konnte nicht gespeichert werden...";
    			}
    			
    			mysql_close($verbindung);
    		}
    	?>
    </body>
    </html>

Login zum Webhosting ohne Werbung!