Excellent
09-08-2008, 10:32 PM
Hey guys, quick little script here! Invent! originally made it for habbolake but took it off so I wanted to make something similar :p
Heres the code:
<?php
if(isset($_POST['find'])) {
if((!$_POST['habbo']) || (!$_POST['hotel'])) {
echo ("Oops! You haven't filled in all the fields mister!");
} else {
$habbo = addslashes(htmlspecialchars($_POST['habbo']));
$hotel = addslashes(htmlspecialchars($_POST['hotel']));
echo ("<img src='http://www.habbo$hotel/habbo-imaging/avatarimage?user=$habbo />");
}
} else {
echo ("<form method='post' action='findhabbo.php'>
Habbo name:<br>
<input type='text' name='habbo' size='20'><br>
Hotel:<br>
<select name='hotel' size='1'>
<option label='UK' value='.co.uk'>UK</option>
<option label='US' value='.com'>US</option>
</select><br>
<input type='submit' name='find' value='Find habbo!'>
</form>");
}
?>
Yes you can re-use it or whatever just please don't claim you made it :P All comments are appreciated.
Heres the code:
<?php
if(isset($_POST['find'])) {
if((!$_POST['habbo']) || (!$_POST['hotel'])) {
echo ("Oops! You haven't filled in all the fields mister!");
} else {
$habbo = addslashes(htmlspecialchars($_POST['habbo']));
$hotel = addslashes(htmlspecialchars($_POST['hotel']));
echo ("<img src='http://www.habbo$hotel/habbo-imaging/avatarimage?user=$habbo />");
}
} else {
echo ("<form method='post' action='findhabbo.php'>
Habbo name:<br>
<input type='text' name='habbo' size='20'><br>
Hotel:<br>
<select name='hotel' size='1'>
<option label='UK' value='.co.uk'>UK</option>
<option label='US' value='.com'>US</option>
</select><br>
<input type='submit' name='find' value='Find habbo!'>
</form>");
}
?>
Yes you can re-use it or whatever just please don't claim you made it :P All comments are appreciated.