Location: PHPKode > scripts > Convertor text > to *.png > convertor-text-to-png/enter_field.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Img to Png</title>
            <style type="text/css">
			html{
	font-family: Arial, Helvetica, sans-serif;
	background-image: url(bg.gif);
	color:#FFF;
			}
			img.header {
	border:0px;
			}
			#enterfield {
	position:fixed;
	top: 100px;
	width: 70%;
	left: 15%;
	height: 375px;
	font-size: 16px;
	line-height: 25px;
	background-image: url(bg.png);	
			}
			#enterfield.error{
	position:fixed;
	top: 500px;
	width: 70%;
	left: 15%;
	height: 40px;
	background-image: url(bg_red.png);
			}
			#enterfield.normal{
			}
			#counter{
				position:fixed;
				bottom:0;
				right:0;
			}
			#date{
				position:fixed;
				bottom:0;
				left:0;
			}
			</style>
</head>
<body>
<a href="index.php" ><img class="header" src="http://kiwi-productions.host22.com/random_uploads/image_to_png/index.php?txt=Kiwi+Productions&font=Harabara&size=&width=525&color=black&red=0&green=0&blue=0" /></a>
<div id="date">
<?php 
//$date = mktime(date("H")+1,date("m"),0,date("m"),date("d"),date("Y"));
$date = date("d.m.Y");
echo "<img src='http://kiwi-productions.host22.com/random_uploads/image_to_png/index.php?txt=Todays date: $date&font=evanescent&size=30&width=525&color=black&red=0&green=0&blue=0' /> ";
?></div>
<fieldset id="enterfield" class="normal"><Legend>Make text into an transparant image</legend>
			<form action="index.php" method="get">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b><h3>Basic</h3></b></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Text :</td>
    <td><input name="txt" type="text" /></td>
  </tr>
  <tr>
    <td>Font :</td>
    <td><select name="font">
        <option value="MASTERPLAN">Masterplan</option>
        <option value="SNIPER">Sniper</option>
        <option value="Saint-Andrews Queen">Saint-Andrews Queen</option>
        <option value="Harabara">Harabara</option>
        <option value="Action_of_The_Time_A_L">Action of the time</option>
        <option value="bankgothic-regular-db">BankGothic</option>
        <option value="evanescent">Evanescent</option>
        <option value="Beyond_Wonderland">Beyond wonderland</option>
        </select>
    </td>
  </tr>
  <tr>
    <td>Text-Size :</td>
    <td><input name="size" type="text" maxlength="3" size="4" />   (fill in for custom, default = 50)</td>
  </tr>
  <tr>
    <td>Width :</td>
    <td><input name="width" type="text" maxlength="4" size="5" />  (fill in for custom, default = 500)</td>
  </tr>
  <tr>
    <td><h3><b>Color:</b></h3></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td valign="top"><b>Select:</b><br />
                    <select name="color">
                    <option value="black">Black</option>
                    <option value="white">White</option>
                    <option value="red">Red</option>
                    <option value="green">Green</option>
                    <option value="yellow">Yellow</option>
                    <option value="blue">Blue</option>
                    <option value="grey">Grey</option>
                    <option value="custom">Custom</option>
                    </select></td>
    <td valign="top"><b>Custom:</b><br />
           <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
               	<td width="75px">
                	 Red :
                </td>
                <td>
                	<input name="red" value="0" size="4" maxlength="3" type="text" /><br />
                </td>
           </tr>
           <tr>
                <td>
                	Green :
                </td>
                <td>                      
                    <input name="green" value="0" size="4" maxlength="3" type="text" /><br />
                </td>
          </tr>
          <tr>
                <td>
                    Blue :  
                </td>    
                <td>
                	<input name="blue" value="0" size="4" maxlength="3" type="text" /><br />
                </td>
                </td>
           </tr>
           </table>       
     </td>
  </tr>
</table>
            <input type="submit" value="Convert">
			</legend>
            </form>
            <?php
			if (!empty ($_GET['e']))
			{
				echo '<fieldset id="enterfield" class="error"><legend>Error</legend>'; 
			$error = $_GET['e'];
			switch ($error)
				{
					case 't':
							echo "Please fill in a text.";
							break;
				}
				echo "</fieldset>";
			}
?>
            
<div id="counter"><table width="133" border="0" cellspacing="0" cellpadding="3"><tr><td align="center"><font style="font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #330006; text-decoration: none;">Aantal bezoekers:</font></td></tr><tr><td align="center" valign="top"><img src="http://www.website-hit-counters.com/cgi-bin/image.pl?URL=1990-5915" alt="website hit counter" border="0" ></td></tr></table></div>


</body>
</html>
Return current item: Convertor text > to *.png