<?php include('config.php');
@mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS) OR die(mysql_error());
mysql_select_db(MYSQL_DATABASE) OR die(mysql_error());
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>FCKeditor - Samples - Posted Data</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex, nofollow">
<link href="../sample.css" rel="stylesheet" type="text/css" >
</head>
<body>
<h1> </h1>
<hr>
<table border="1" cellspacing="0" id="outputSample">
<colgroup><col width="80"><col></colgroup>
<thead>
<tr>
<th>Field Name</th>
<th>Value</th>
</tr>
</thead>
<?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 )
{
if ( get_magic_quotes_gpc() )
$postedValue = htmlspecialchars/*_decode*/( stripslashes( $value ) ) ;
else
$postedValue = htmlspecialchars/*_decode*/( $value ) ;
$postedValue = str_replace("style=\"color: rgb(153, 51, 0);\"","color=\"#5b5b00\"", $postedValue);
$postedValue = ereg_replace("/span","/font",$postedValue);
/*ereg_replace(Suche,Ersetze,betroffene Variable)
ereg_replace(Suche,Ersetze,betroffene Variable)
*/
?>
<tr>
<th><?php echo $sForm?></th>
<td><pre><?php echo $postedValue?></pre></td>
</tr>
<?php
}
/*
$sql = mysql_query("INSERT INTO News (text)
VALUES
('$postedValue')" );
echo "<b>Die Daten wurden erfolgreich geschrieben</b>";
*/
?>
</table>
</body>
</html>