Now, I'm sure that I must be doing something really, really dumb, and the
problem is staring me in the face, but I've spent ages trying to work it
out and would be grateful of assistance! I've read and re-read the
documentation, without success.
I have a CGI script:
#! /usr/bin/perl
use CGI;
use HTML::Embperl;
$q = new CGI;
$a = "Test";
$template = "./recipe.html";
print $q->header(-type=>'text/html');
HTML::Embperl::Execute($template,$a);
exit;
I also have a template:
<HTML>
<HEAD>
<TITLE>Test</TITLE>
</HEAD>
<BODY>
<P>[+ $a +]</P></BODY>
</HTML>
My assumption is that when I run the above CGI script -
http://hostname/cgi-bin/test.pl - it will simply display the value of $a,
yet it does not. All I get is everything else and nothing where "Test"
should be.
What am I doing wrong?
All the best,
--
Ian Fenn
http://www.chopstix.net/ - The award-winning Oriental food and culture site.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]