in reply to Re: Perl/Server Side Includes
in thread Perl/Server Side Includes

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.

Replies are listed 'Best First'.
Re: Re: Re: Perl/Server Side Includes
by valdez (Monsignor) on Nov 25, 2002 at 14:01 UTC

    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