global $getpost, $postinfo, $edit; if (THIS_SCRIPT == 'editpost' AND $getpost['postid'] == $postinfo['postid']) { //need to update thread desc $edit['threaddesc'] = htmlspecialchars_uni($edit['threaddesc']); $this->set('threaddesc', $edit['threaddesc']); }