[help] how would i do this?

Status
Not open for further replies.

habbz

Custom Title bitchssssssss
Nov 12, 2010
227
1

is there a code that will replace text with user inputed text and and so on?
If you copy the link replace text w/ actual text and size and border w/ numbers it works, i need a code that will let a user put what text they want, size & border width. and then go and fetch that image. can some one do this for me?
 

Markshall

Русский Стандарт
Contributor
Dec 18, 2010
2,637
2,389
Like this, even though HabboEmotion are down for the moment...

PHP:
<?php
if( $_POST[submit] )
{
	$t = strip_tags( $_POST['text'] );
	$s = strip_tags( $_POST['size'] );
	$w = strip_tags( $_POST['width'] );
	$link = "http://habboemotion.com/resource/generalscripts/voltertxtgen/text.php?t=" . $t . "&s=" . $s . "&w=" . $w;
	echo "<img src=\"" . $link . "\"><br><input type=\"text\" value=\"" . $link . "\" onfocus=\"this.select();\">";
}
else
{
	echo "<form method=\"post\">
		Text: <input type=\"text\" name=\"text\"><br>
		Size of text: <select name=\"size\">"; for( $i=1;$i<=20;$i++ ) { echo "<option>" . $i . "</option>"; } echo "</select><br>
		Width of border around text: <select name=\"width\">"; for( $i=1;$i<=20;$i++ ) { echo "<option>" . $i . "</option>"; } echo "</select><br>
		<input type=\"submit\" name=\"submit\" value=\"Create text\">
	</form>";
}
?>
 
Status
Not open for further replies.

Users who are viewing this thread

Top