The following is the code for creating a button. Name it, say button.php3
<?PHP
// Create GIF images
Header("Content-type: image/gif");
$string = implode($argv, " ");
// Create a blank gif with size 13020
$img = ImageCreate(130,20);
$white=ImageColorAllocate($img,255,255,255);
$orange=ImageColorAllocate($img,255,153,0);
$black=ImageColorAllocate($img, 0, 0, 0);
$yellow=ImageColorAllocate($img,255,255,0);
// The shape of the image is rectangle
// the 130,20 are the image's size
// the background color is yellow
ImageFilledRectangle($img,0,0,130,20,$yellow);
$px=(imagesx($img) - 7strlen($string))/2;
//The size & color of the text on the button
ImageString($img,3,$px,5,$string,$black);
ImageGif($img);
ImageDestroy($img);
?>
and the code you show the button is:
<img src='button.php3?My+Page' border=0 alt='My Page'>