Location: PHPKode > scripts > Wrappedtext > example.php
<?
if(!empty($HTTP_POST_VARS['tekst']))
{
	include('wrappedtext.php');
	$WRAPPEDTEKST=new wrappedtext($HTTP_POST_VARS['tekst'],50,50,'<br>',1,1,'<font>',1,1,'_new');
?>
<table width='400' border='1'>
<tr>
<td width="100%">
<?=$WRAPPEDTEKST->getit()?>
</td>
</tr>
</table>
<?
}
?>
<br>
<form method="POST" action="<?=$HTTP_SERVER_VARS['PHP_SELF']?>">
<textarea name="tekst" rows="5" cols="20">
</textarea>
<input type="submit" value="POST">
</form>
Return current item: Wrappedtext