Location: PHPKode > projects > BBCode Advanced > bbcode-advanced/index.php
<?php
#########################################################
#	GiveMeEnergy Projects								#
#	Engine by []==ThoRĀ®	for More Interactive			#
#	Contact:											#
#	hide@address.com									#
#	hide@address.com										#
#	More Interactive - www.more.it						#
#														#
#	See	More Projects WebSite for updates & patches		#
#	http://projects.moreinteractive.net/				#
#														#
#########################################################

include("lib/class.bbCode.php");
include("lib/class.colorConverter.php");

//	Write Form and Tags
$bbCode	= bbCode::writeBBCode("kenderForm","textBBCode");
//	Parse the string and replace BBCode tags with HTML tags
$textBBCode	= (isset($_REQUEST['textBBCode']) && $_REQUEST['textBBCode'] != "")	? $_REQUEST['textBBCode'] : "";

$stringBBcoded	= bbCode::parseBBCode($textBBCode);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>BBCode Test</title>
	<link href="css/style.css" rel="stylesheet" type="text/css"> 
	<script language="JavaScript" type="text/javascript" src="js/func.js"></script>
</head>

<body>
<?php echo $bbCode; ?>
<form action="index.php" method="post" name="kenderForm">
<input type="hidden" name="op" value="1">
<textarea name="textBBCode" rows="10" cols="80" 
 onFocus="javascript:document.theField=this.name;"></textarea><br>
<input type="submit" name="go" value=" bbcode It ">
</form><br><br>
<?php echo $stringBBcoded; ?>
</body>
</html>
Return current item: BBCode Advanced