in reply to Execute perl script from HTML

chromatic was right about using a server side include, but it's probably worth pointing out that the image trick that you were trying _will_ work - but only if the content that your script creates is a valid image type.

--
<http://www.dave.org.uk>

European Perl Conference - Sept 22/24 2000
<http://www.yapc.org/Europe/>

Replies are listed 'Best First'.
RE: Re: Execute perl script from HTML
by athomason (Curate) on Jun 22, 2000 at 20:27 UTC
    That is, your script needs to return a header like "Content-Type: image/jpg" or "Content-Type: image/gif" instead of "Content-Type: text/html". You can do this pretty easily with CGI.pm in the header command.