PDA

View Full Version : bbcode_parse2 problem


AN-net
02-14-2005, 02:47 AM
ok for some reason for my preview news code the bbcode_parse2 function cuts off all the text except for the first character. i need help!!

here is my code:

if($_POST['preview'])
{
$_REQUEST['do']= "newnews";
$show['preview']= TRUE;
$newstext= htmlspecialchars_uni($newstext);
require_once('./includes/functions_bbcodeparse.php');
$preview['text']= parse_bbcode2($newstext, 0, 1, 1, 1);
$newstitle= htmlspecialchars_uni($newstitle);
}


i need help please!!

AN-net
02-15-2005, 05:52 PM
bump

Marco van Herwaarden
02-15-2005, 07:27 PM
$newtest is not an array by any chance?

AN-net
02-16-2005, 02:16 AM
nope its submitted from a form... ive used that function a gillion times and never has it done this, im stooped:(