Hi,

 

I want to TMPL_INCLUDE files, the problem is that the file I want to include itself is variable. I want a construct of the sort

<TMPL_INCLUDE NAME=”<TMPL_VAR NAME=file_name>”>

 

Obviously, in my PERL script, I have a

$template->param(file_name=>$filename);

 

While the manual speaks of

<IMG SRC=”<TMPL_VAR NAME=image_name>”>, there is no such feature provided for what I have stated above. Further, this also throws up a syntax error. Apache error log is given below.

 

[Tue Jul 12 01:29:57 2005] [error] [client 127.0.0.1] Premature end of script headers: yes.pl, referer: http://localhost/cgi-bin/yes.pl?username=bawa&password=bawa&rm=login_validate

[Tue Jul 12 01:29:57 2005] [error] [client 127.0.0.1] Error executing run mode 'admin_add_user': HTML::Template->new() : Syntax error in <TMPL_*> tag at F:\Program Files\Apache Group\Apache2\htdocs\yes\admin_tmpl.html : 10. at C:/Perl/site/lib/HTML/Template.pm line 2288., referer: http://localhost/cgi-bin/yes.pl?username=bawa&password=bawa&rm=login_validate

[Tue Jul 12 01:29:57 2005] [error] [client 127.0.0.1]  at F:/Program Files/Apache Group/Apache2/cgi-bin/yes.pl line 4, referer: http://localhost/cgi-bin/yes.pl?username=bawa&password=bawa&rm=login_validate

 

Regards,

Rajesh

DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated..