EDIT:
DER SCRIPT FUNKTIONIERT
Hy
Ich habe ein Wysiwyg online Editor.
Wenn ich z.b. "<a>" Schreibe macht er mir ein " <" daraus, dass will ich aber nicht.
Gibt es eine möglichkeit das zu unterbinden??
edit.php
jo.php
danke
DER SCRIPT FUNKTIONIERT

Hy
Ich habe ein Wysiwyg online Editor.
Wenn ich z.b. "<a>" Schreibe macht er mir ein " <" daraus, dass will ich aber nicht.
Gibt es eine möglichkeit das zu unterbinden??
edit.php
PHP-Code:
<!--
/**********************************************************************
Version: FreeRichTextEditor.com Version 1.00.
License: http://creativecommons.org/licenses/by/2.5/
Description: Example of how to preload content into freeRTE using PHP.
Author: Copyright (C) 2006 Steven Ewing
**********************************************************************/
-->
<?php
$fp = fopen("news.html","r");
if ($fp)
{
while(!feof($fp))
{
$content = fgets($fp);
}
fclose($fp);
}
?>
<form action="jo.php" method="post" target="_blank">
<!-- Include the Free Rich Text Editor Runtime -->
<script src="../js/richtext.js" type="text/javascript" language="javascript"></script>
<!-- Include the Free Rich Text Editor Variables Page -->
<script src="../js/config.js" type="text/javascript" language="javascript"></script>
<!-- Initialise the editor -->
<script>
initRTE('<?= $content ?>', 'example.css');
</script>
<input type="submit" value="Speichern">
</form>
PHP-Code:
<html>
<head>
</head>
<body>
<?php
if ( isset( $_POST ) )
$postArray = &$_POST ; // 4.1.0 or later, use $_POST
else
$postArray = &$HTTP_POST_VARS ; // prior to 4.1.0, use HTTP_POST_VARS
foreach ( $postArray as $sForm => $value )
{
$postedValue = ( stripslashes( $value ) ) ;
?>
<tr>
<td valign="top" nowrap></td>
<td width="100%"><?=$postedValue?></td>
</tr>
<?php
}
$fp=fopen("news.html","w");
fwrite($fp,$postedValue);
fclose($fp);
?>
Kommentar