The $id generates fine from this sub:
The SSI is near the bottom.

####################################### sub get_file_name { ####################################### $proc=$$; $newnum=time; $newnum=substr($newnum,4,5); $date=localtime(time); ($day, $month, $num, $time, $year) = split(/\s+/,$date); $month=~tr/A-Z/a-z/; $PREF = "$month$num-"; $id="$PREF$newnum$proc"; $FILE_NAME="$BASEDIR/$PREF$newnum$proc$EXT"; $URL_NAME="$BASEURL/$PREF$newnum$proc$EXT"; }

This is the sub that produces the html output page:

####################################### sub poem_page { ####################################### $poembody =<<__END_OF_POEM_BODY__; <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <title>$fields{'poem_title'} by $fields{'author_name'}</title> <link rel="stylesheet" type="text/css" href="/poems/poem_font.css" /> <SCRIPT LANGUAGE="JavaScript"> <!-- if(navigator.userAgent.indexOf("MSIE") != -1) document.writeln (''); else document.writeln ('<EMBED SRC="$BASEURL/$fields{'midifile'}" AUTOSTART +="true" HIDDEN="true" VOLUME="60%">'); //--> </SCRIPT> </head> <BGSOUND SRC="$BASEURL/$fields{'midifile'}"> $BODYTAG $params <CENTER> <P> <TABLE WIDTH=584 BGCOLOR=WHITE BACKGROUND="/IMAGES/2x2.gif" BORDER=0 C +ELLPADDING=0 CELLSPACING=0> <TR> <TD ALIGN=CENTER VALIGN=MIDDLE height="70" BACKGROUND="$BASEURL/theme +s/$fields{'theme'}/head_bg.jpg" class="$fields{'font_family'}_title"> $fields{'poem_title'} </TD> </TR> <TR> <TD ALIGN=CENTER VALIGN=TOP> <TABLE> <TR> <TD WIDTH="30" align="right">&nbsp;</TD> <TD ALIGN="justify" VALIGN="TOP" class="$fields{'font_family'}"><d +iv align="justify"> <BR> <PRE align="justify" class="$fields{'font_family'}">$fields{'poem_ +body'}</PRE> </div> </TD> <TD WIDTH="30" align="right">&nbsp;</TD> </TR> </TABLE> </TD> </TR> <TR> <TD ALIGN=LEFT VALIGN=MIDDLE> <TABLE> <TR> <TD WIDTH="250" align="right" height="50">&nbsp;</TD> <TD WIDTH="250" ALIGN="left" class="$fields{'font_family'}"> - $fields{'author_name'} </TD> </TR> </TABLE> </TD> </TR> <TR> <TD ALIGN="CENTER" VALIGN="BOTTOM"><font face="arial" size="1" color= +"#444444">Copyright &copy; 2003</font> <p> <!--#include virtual="/cgi-bin/rating/rate_display.cgi?java=yes&produc +t=Name_of_Product&id=$id"--> </TD> </TR> </TABLE> </CENTER> </BODY> </HTML> __END_OF_POEM_BODY__ }

Any way to get that $id to print?


In reply to Re: Re: Just a simple task by Migey
in thread Just a simple task by Migey

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.