No you don't. You want to generate
This is HTML, so HTML entities must be escaped. The code is somewhat simple (typing this from memory, so be kind if I've made a mistake):<img src="graph?channel=1&xsize=300&ysize=400">
use URI; use HTML::Entities; my $uri = URI->new("graph", "http"); $uri->query_form(channel => 1, xsize => 300, ysize => 400); print "<img src=\"", encode_entities($uri->as_string), "\">";
|Replies are listed 'Best First'.|
Re: Re: Re: Re: Re: Re: Best way to generate URLs in CGI script?
by bikeNomad (Priest) on Jul 27, 2001 at 22:17 UTC
by merlyn (Sage) on Jul 28, 2001 at 03:26 UTC