Hello,
I am developing a script in php where the visitor visits a page www.thehostresource.net/testform.phpwww.thehostresource.net/testform.php
They enter their handle and their provider, it then goes to the next page and creates an image.
All is good so far.
However I want to display an image instead of the @gmail.com, rather an image of size 20h by 70w.
<?php
header ("Content-type: image/png");
$x = "$name@$provider";
$length = 9.5 * strlen(trim($x)) + 50;
$image = "<img src='Image1.png' width='70' height='20'>";
$img_handle = ImageCreate ($length, 20) or die ("Cannot Create image");
$back_color = ImageColorAllocate ($img_handle, 0, 10, 10);
$txt_color = ImageColorAllocate ($img_handle, 233, 114, 191);
ImageString ($img_handle, 31, 5, 5, "$name@$provider", $txt_color);
ImagePng ($img_handle);
?>
As you can see on the second to last line, $name@$provider, I want to replace this provider with the $image, is there anyway to do this? I can't find it and it's annoying the hell out of me.
It's just writing the actual code (admin@<img src=)
Please help me.