hey all,
new to all this here php stuff but i've got a nagging problem getting plain 'ol HTML out of fckeditor ...
here's some code which is the action of an FCK form->
---------------------------------
<?php session_start(); $username = $_SESSION['username']; if ( isset( $_POST ) ) $postArray = &$_POST ; else $postArray = &$HTTP_POST_VARS ; foreach ( $postArray as $sForm => $value ) { $postedValue = htmlspecialchars( stripslashes( $value ) ) ; } $position = "content"; (other sql stuff) $content = $postedValue; $Link = mysql_connect ($Host, $User, $Password); $Query = "UPDATE " . $TableName . " SET " . $position . " = '" .$content . "' WHERE username = '" . $username . "'"; if (mysql_db_query ($DBName, $Query, $Link)) { header ("location: ../../../show_page_make.php"); } else { print ("$username , $content"); } mysql_close ($Link); ?>
RE: html output from fckeditor - help please
$postedValue = htmlspecialchars( stripslashes( $value ) ) ;
it should be:
postedValue = stripslashes( $value ) ;