in reply to Re: GD::graph
in thread Multiple GD::graphs in one web page?

What I'm trying to do is print two graphs on the same page like a bar graph and a pie graph, one next to the other but the cgi prints only the first graph and ignore the second one.

Replies are listed 'Best First'.
Re^3: GD::graph
by Aristotle (Chancellor) on Jun 23, 2002 at 14:06 UTC
    You need to pass your CGI a parameter to tell it which graph you want. It obviously can't know which part of the page it's being called for (in fact, it doesn't even know there is a link to it on a page). After all, if you type the CGI's URL in your browser address bar, how would it decide it what to do? Append something like ?type=bar to the URL and read up on CGI's param() function.

    Makeshifts last the longest.