in reply to Perl/Server Side Includes

This is exactly what you should do :) What is happening when you load the page? Any error? Tell us something more and we'll try to help you!

Ciao, Valerio

Replies are listed 'Best First'.
Re: Re: Perl/Server Side Includes
by Anonymous Monk on Nov 25, 2002 at 12:02 UTC
    If I just put it anywhere, it includes it as text, displayed on the page. But instead of displaying it, I want to use the result of intercept.cgi as HTML code. I have tried putting:
    <input type="hidden" name="transactioncode" value="<!--#include virtua +l="/cgi-bin/intercept.cgi">">
    Which I would like to write into the HTML as:
    <input type="hidden" name="transactioncode" value="5655645">
    But instead it writes as far as
    Various HTML here <input type="hidden" name="transactioncode" value="5655645
    And then it crashes out. (If this makes sense). Thanks in advance.

      Please try with:

      <input type="hidden" name="transactioncode" value='<!--#include virtual="/cgi-bin/intercept.cgi" -->'>

      Note the use of quote characters and the -- at the end of the SSI directive.

      Ciao, Valerio