-
Habbo Text Generator
Well the text generator on Habbo Ring is fine and everything yeah, but when you submit the word you want, with the font you want you only get one letter a time, and you can't save them as a full image, you can only save it letter by letter,
e.g: www.thatshabbo.net/text
(When you submit the word you can only save the word letter by letter)
How would I make this code let you save the word you submit alltogether?
PHP Code:
<?php
$siteurl = "http://www.habboring.com/text";
$ver = "1.6";
if(!$_POST['submit']) {
echo("
<font face=\"Verdana\" size=\"1\">");
?>
<?php
echo("
<center><form action=\"index.php\" method=\"POST\">
Text: <input type=\"text\" id=\"to_translate\" name=\"to_translate\">
<br />
Font:
<select name=\"font\">
<option value=\"Lido\">Lido</option>
<option value=\"Battleball\">Battle Ball</option>
<option value=\"Space\">Space</option>
<option value=\"Chinese\">Chinese</option>
<option value=\"Bathroom\">Bathroom</option>
<option value=\"Football\">Football</option>
<option value=\"Disco\">Disco</option>
<option value=\"Explore\">Explore</option>
<option value=\"Habboclub\">Habbo Club</option>
<option value=\"Original\">Original</option>
<option value=\"Habbowood\">Habbowood</option>
<option value=\"Bling\">Bling</option>
<option value=\"Iced\">Iced</option>
<option value=\"Keyboard\">Keyboard</option>
<option value=\"Love\">Love</option>
<option value=\"Recycler\">Recycler</option>
<option value=\"Simple\">Simple</option>
<option value=\"Space\">Space</option>
<option value=\"Tele\">Teleport</option>
<option value=\"Trophy\">Trophy</option>
</select>
<br />
<input type=\"submit\" value=\"Generate!\" name=\"submit\">
</form>
<br>");
}else{
echo("
<font face=\"Verdana\" size=\"2\">
You wanted <b>$to_translate</b> in <b>$font</b> letters. Here it is!<br />");
$to_translate = urlencode($to_translate);
$varToLower = strtolower($to_translate);
$length = strlen($varToLower);
for( $i = 0; $i < $length; $i++) {
echo "<img src=\"$siteurl/$font/$varToLower[$i].gif\" alt=\"$varToLower[$i]\">\n";
}
echo("<br /><a href=\"$siteurl/index.php\">Try Again?</a>");
}
?>
</font>
<br /><font size="1" face="Verdana">habLetters coded by Edd Adams (Emo Rangers of HabboxForum UK). I do possess the right to poke you really hard if you steal this.</font></center>
Thanks in advance for any help!
:)