The problem's probably because of file locations.

If you don't supply a path in the img tag, it asumes the image is in 
the same directory as the cgi, and not in the web site's home directory 
which is presumably where you put the html file.

Gary
On Tuesday 05 June 2001  2:11 pm, Rich Fernandez wrote:
> Hello folks,
>
> I'm playing around with a web page that serves up an image or video
> file. If I use straight HTML I can create a link that says something
> like "<img src=myfile.mpg>" and have the video display when the link
> is clicked, but I can't get the right syntax using CGI.pm. Probably
> trivial, but...
>
> The link that I'm testing with looks like this: "<a
> href=http://gromit/cgi-bin/juggling.pl?video=rr.mpg>Rubinstein's
> Revenge</a>"
>
> Here's my code...
>
> -----------------------------------------------------------
> #!/usr/bin/perl -w
> use strict;
> use CGI;
>
> my $query = CGI -> new();
> my $vidfile = $query -> param("video");
> print $query -> header();
>
> <the mystery statement>
>
> print end_html;
> -------------------------------------------------------------
>
> Question is, how do I get the script to display the video. Doesn't
> seem like a print statement is what I want...
> Any help?
>
> Thanks!
>
> Rich

-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 
    

Reply via email to