This example shows how to add dynamically some text to a gif and create a
button. See also the file button-php.
Example found at PX: PHP Code Exchange. Had a problem with non US letters and punctuation which I
fixed. Note that you need to have the GD library installed for this to work.