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: 15 years ago
Size: 730 bytes


Class file image Download
print "
<b>Ascii Generator</b>
<form action='' method=get>
type text: <input type=text maxvalue=8 name=text value=\"
select font:
<select name=\"font\" width=100>
<option value=\"dos\">dos
<option valuċ=\"graffiti\">graffiti
<option value=\"banner\">banner
<input type=submit value=ok>
<input type=reset value=reset>

"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>";