Hi have problem with HTM output. I checked database and records in database shows me values such "alt:;" etc. instead <p>.
when i type "a sample text" in editor then on my page i have got <p>sample text</p>. My page and database is encoded in UTF-8
I want to use FCK editor just for textarea id="body" not for title.
there is code from a my blog write function:
How to escape from?
when i type "a sample text" in editor then on my page i have got <p>sample text</p>. My page and database is encoded in UTF-8
I want to use FCK editor just for textarea id="body" not for title.
there is code from a my blog write function:
/* Check Structure Availability */
if (!defined("CORE_STRAP")) die("Out of structure call");
$tpl = new template;
$tpl -> Load("write");
if (!isset($_SESSION["id"])) {
$tpl->Zone("blogWriteBlock", "guest");
$tpl->Zone("blogWriteHeader", "write");
_fnc("reload", 5, "?L");
}
else {
$tpl->Zone("blogWriteBlock", "enabled");
if (isset($_POST["Submit"])) {
if (isset($_POST["title"]) && $_POST["title"] != "" && isset($_POST["body"]) && $_POST["body"] != "") {
myQ("
INSERT INTO `[x]blogs`
(`user`,`date`,`title`,`body`)
VALUES
('".me('id')."','".date("U")."','{$_POST["title"]}','{$_POST["body"]}')
");
$tpl->AssignArray(array("lastAddedID"=>mysql_insert_id()));
$tpl->Zone("blogWriteHeader", "saved");
} else $tpl->Zone("blogWriteHeader", "error");
} else $tpl->Zone("blogWriteHeader", "write");
}
$tpl -> Flush();
?>
How to escape from?
