PHP Classes

File: form.php

Recommend this page to a friend!
  Classes of Sergey Ivanov   ASCII text   form.php   Download  
File: form.php
Role: Example script
Content type: text/plain
Description: Ascii text
Class: ASCII text
Render text using ASCII art fonts
Author: By
Last change:
Date: 16 years ago
Size: 730 bytes
 

Contents

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

?>