Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Bas Jobsen  >  wrappedtext  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: wrappedtext
Word wrap class (that skips html tags)
Author: By
Last change:
Date: 12 years ago
Size: 468 bytes
 

Contents

Class file image Download
<?
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>