in reply to Conditional statement problem
Is this to mean that the CGI script is called in the following fashion?
<img src="/cgi-bin/myscript.cgi" />
If so, then this is where your problem is - Your browser will be expecting the result of the script to be of content image/gif or alike, whereas your script is returning text/html (check the CGI documentation on the header method for details).
If indeed, this is how you are calling your script, you have two options as far as I can see:
<!--#include virtual="/cgi-bin/myscript.cgi" -->
The result being the incorporation of the text/html content returned by your current script into the HTML document.
print header( -cookie => $to_set, -type => "image/gif" ); eval { open (FH, $image); print <FH>; close (FH); } || die $!;
Ooohhh, Rob no beer function well without!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Conditional statement problem
by Anonymous Monk on Nov 14, 2001 at 20:27 UTC |