Ich habe folgendes Problem. Ich möchte das die Formatierungen, die per Id geladen werden auch gespeichert werden. So wird nur der Text ohne formatierung gepeichert.
PHP-Code:
<?php
include 'mysql.inc.php';
include 'connect.php';
$sql = "INSERT INTO
text
(eingabe)
VALUES
('".$_POST['myTextArea']."');";
mysql_query($sql) OR die(mysql_error());
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Xinha Newbie Guide</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
_editor_url = "../" // (preferably absolute) URL (including trailing slash) where Xinha is installed
_editor_lang = "de"; // And the language we need to use in the editor.
_editor_skin = "silva"; // If you want use skin, add the name here
</script>
<script type="text/javascript" src="../XinhaCore.js"></script>
<script type="text/javascript" src="XinhaConfig.js"></script>
</head>
<body>
<form action="" method="POST">
<textarea id="myTextArea" name="myTextArea" rows="10" cols="50" style="width: 820px"></textarea><br>
<input type="submit">
</form>
</body>
</html>
Kommentar