Can/how would I access/set an environmental varialbe from a GF template ?
For example if I have a program
====
#!/usr/bin/perl
# tell gforum what to do
$Q_STRING="post=999;sb=post_latest_reply;so=ASC;forum_view=forum_view_expa\
nded;t=DRB;page=unread#unread";
$ENV{QUERY_STRING}=$Q_STRING;
# also set an environmental variable
$ENV{MY_VAR}='foo';
print `/var/www/gf/cgi-bin/gforum.cgi`;
====
How can I get the value of $ENV{MY_VAR} in the GF template ?
Thanks
Bob
For example if I have a program
====
#!/usr/bin/perl
# tell gforum what to do
$Q_STRING="post=999;sb=post_latest_reply;so=ASC;forum_view=forum_view_expa\
nded;t=DRB;page=unread#unread";
$ENV{QUERY_STRING}=$Q_STRING;
# also set an environmental variable
$ENV{MY_VAR}='foo';
print `/var/www/gf/cgi-bin/gforum.cgi`;
====
How can I get the value of $ENV{MY_VAR} in the GF template ?
Thanks
Bob