What i want to do is to load the Generated image within the page.
I have a Textbox and after user inputted a text the image will load with the user inputted text within the page and the textbox will still be visible.
here's the code.
<form method="POST" action="image.php">
<img src="image.php">
Name (1 Line)<br />
<input type="text" name="name" >
<input type="submit" value="Preview Image" name="Submit">
</form>
And the image.php code
$_POST["name"];
$im = ImageCreateFromPNG("files/xxx_image.png");
$color = imagecolorallocate($im, 000, 000, 000);
$font = 'files/ENGR.TTF';
$fontRotation = "0";
$text = $_POST["bulletname"];
$x = 70;
$y = 90;
imageTTFtext($im, $fontSize, $fontRotation, $x, $y, $color, $font, $text);
header("Content-Type: image/png");
imagePNG($im);
imagedestroy($im);
I want to generate the image within the page.
Anybody know how to do that?
Even the very basic.... thanks,