Location: PHPKode > scripts > Wysarea > wysarea/example.php
<?
$action  = isset($_REQUEST["action"]) ? $_REQUEST["action"] : "";
$row  = isset($_REQUEST["row"]) ? $_REQUEST["row"] : "";
$description  = isset($_REQUEST["description"]) ? $_REQUEST["description"] : "";

if ($action=='show')
{
	echo"
	<h3>You posted:</h3>
	<br>$description
	<br><br>
	<textarea style='width:100%; height:95px'>$description</textarea>
	<br><h1>Jesus Christ is our God, Ukraine is great!</h1><br>
	<a href='?'>try again</a>";
	exit;
}



$variable="To use this wysarea class is as simple as <B>textarea</B> tag. Replace any textarea's with wysarea.<BR>Wysarea understands symbols ~!@#$%^%&amp;*()_+|][{}';/.,|'¨!!¹:? <BR><BR><B>Warning:</B>I do not recommend using this class for all site clients. Use it only in secure pages, because:
<LI>only Internet Explorer supports this class. (<U>help me to port it for Mozilla and Opera</U>)
<LI>Class generate real html. A hacker can deface your website. You must use htmlspecialchars or another way to filter input . If you have a security fix for this please email me.</LI>
<P><FONT style='BACKGROUND-COLOR: #33cc99' color=#003300>I'm interested in remout job for $300 per month.</FONT><BR>You may <FONT color=#990000>download</FONT> full class archive (<FONT color=#990000>icons</FONT> and language files included) at <A href='http://kaurov.poltav.com/wysarea.zip'>http://kaurov.poltav.com/wysarea.zip</A></P>
Thanks to all for translation and fixing.";
require_once"./wysarea.class.php";
$room_name = isset($row['room_name']) ? $row['room_name'] : '';
echo"
<form name=edit method=post action='?action=show'>
	<b>$room_name</b><br>";
	$wysarea= new wysarea("description");
	$wysarea->show($variable,"Apply");
	echo"
</form>";
?>
Return current item: Wysarea