in reply to Re: Re: Content-type: html and images ?
in thread Content-type: html and images ?
Why do you always explicitly print to STDOUT? That's unnecessary unless you've used select to change the default output filehandle.
You need to re-read the sugggest that you were given. "action" is a parameter to your CGI program. Therefore you should have this:
or (more idiomatically)print STDOUT "<IMG SRC=\"show_pic.cgi?action=showImage\">";
Then within show_pic.cgi you can check for the value of the "action" parameter and take appropriate action (i.e. returning either the HTML page or the image). --print qq(<IMG SRC="show_pic.cgi?action=showImage">);
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Content-type: html and images ?
by Anonymous Monk on Feb 10, 2003 at 15:47 UTC | |
by davorg (Chancellor) on Feb 10, 2003 at 16:16 UTC |