I'm a newbie to CGI and perl, but have recently written a few perl modules
to reads and extract text files in HTML table format.
The problem I have is that I'm getting and displaying my HTML forms from
another local file that I'm reading. I just using the open and the print
calls to STDOUT, nothing fancy. The problem is, the HTML that I am
displaying, also contains IMG SRC tags with images and it's this that it's
not displaying. Just the raw text format and tables. When viewing the
source for the web browser end, it clearly shows the tags. Also, when I
view the HTML not through CGI, it displays it fine with all images includes.
Is this a problem with perl, CGI or the web browser? How can I get around
this or is there an easy way of displaying images to a browser?
TO recap,
1. I'm not using any CGI modules at present.
2. I'm using the POST method with my form action for the CGI request.
3. I'm currently using Perl to send the line print "Content-type:
text/html", "\n\n";
4. It reads the HTML out to the browser including all IMG tags, but no
graphics are displayed.
5. When I display the html file directly, it appears OK with all images in
place, but not through my CGI perl program.
Thanks in adance,
passme
> I'm a newbie to CGI and perl,
and Usenet... You should have read a little bit in this Newsgroup and
would have wondered why you couldn't read a word... It's all in German!
> The problem is, the HTML that I am
> displaying, also contains IMG SRC tags with images and it's this that it's
> not displaying. Just the raw text format and tables. When viewing the
> source for the web browser end, it clearly shows the tags.
Check for correct paths.
If you are using Netscape: Go to View/Page Info and look at the paths of
the images. Is that where they are? What happens when you click one of
the "Image:" links? Are the images really where they should be?
HTH,
Kerry
> Hello Richard,
>
> > I'm a newbie to CGI and perl,
>
> and Usenet... You should have read a little bit in this Newsgroup and
> would have wondered why you couldn't read a word... It's all in German!
Diese Frage hat er auch getrennt in mindest. zwei verschiedene
Gruppen (comp.lang.perl.misc und c.i.w.a.cgi) gepostet.
[f'up set]