<?
print "
<b>Ascii Generator</b>
<hr>
<center>
<form action='' method=get>
type text: <input type=text maxvalue=8 name=text value=\"$text\"><br>
select font:
<select name=\"font\" width=100>
<option value=\"dos\">dos
<option valuċ=\"graffiti\">graffiti
<option value=\"banner\">banner
</select>
<br>
<br>
<input type=submit value=ok>
<input type=reset value=reset>
</center>
<hr>";
if($text)
{
print "<PRE>";
include_once("ascii.class.php"); // includes the class's file
$text=new ascii($text,$font); // first parameter is text that will be converted, second is the font style
print $text->asciiText; // asciiText is variable of converted text
print "</PRE>";
}
?>
|