Helvete has asked for the wisdom of the Perl Monks concerning the following question:

Hi, friends! A have a question to you? and i ask for some help. I have a form like this: <form method="get"> <input type="text" name="bantext"> <input type="submit" value="OK"> </form> I have to generate a GIF-banner on a transparent background with a text from "bantext" field. How can I do that on a Perl language? Please, help.

Replies are listed 'Best First'.
Re: How to generate a banner
by GrandFather (Saint) on Mar 11, 2007 at 08:52 UTC
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: How to generate a banner
by Joost (Canon) on Mar 11, 2007 at 13:40 UTC
Re: How to generate a banner
by rvosa (Curate) on Mar 12, 2007 at 01:33 UTC
    At what stage is the gif supposed to be created? For example, does someone type text into the bantext field, then press submit, you process the result via cgi, and echo back the gif? Is the gif supposed to be created and sent to the user at the same time as the form? Who generates the html? You'll have to talk us through the scenario in a bit more detail.
      The user types text into the bantext field? then press Submit, you process the result via cgi, and echo back the gif. How to do this?
        First, you need to process the form results that you'll receive once the user presses submit. A common way to do this is using the CGI module. Read its documentation, and you'll learn how to get the value that the user entered into the "bantext" field. Then, you need to superimpose this value, this string, on a transparent gif file using a module that can modify graphics files. As other people have suggested, you can use for example GD for that. Finally, you have to send back a response to the user that includes the generated gif file.