I have been searching various boards trying to figure out how to generate an
image along with other html. I intend to put the image in a table, but for
now I am just having problem getting the image to generate alongside other
html.
I am using a form to set variables such as colors, text, font, etc and that
works fine as long as I set the header to image/jpeg. The problem is I need
the resulting page to show more than just the image.
However when I try to include other HTML the image displays in what I
believe to be binary form--not an actual image.
I have read posts that indicate to set the <img src> to the script that
generates the image but when I try that I get an empty placeholder (red x).
I obviously need to do more than just set the img src tag to the php file
that creates my image, but I can't seem to come up with how to do this.
I would post my code but I have several generations of it trying various
ways to accomplish this. The various attempts I have made are at
www.scorchingsun.com/php/ch19/design_button1.php with each variation
incrementing through design_button4.php which are the forms sending the
values for the image. To create the picture, these utilize the php file(s)
www.scorchingsun.com/php/ch19/make_button.php, /make_button1.php...all the
way through /make_button6.php.
If anyone knows how to accomplish this I would appreciate any help you can
provide. At this point I am not sure how many files I should be using. I
figure I need one with the form, another that generates the image, but not
sure if I should have another that will generate a table and other html and
reference the php file which generates the image.
Any suggestions out there?
Thanks,
~Sebastian