Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

accessing enviromental variables from a template

Quote Reply
accessing enviromental variables from a template
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
Subject Author Views Date
Thread accessing enviromental variables from a template regert 2597 Feb 25, 2003, 9:52 AM
Thread Re: [regert] accessing enviromental variables from a template
Alex 2515 Feb 26, 2003, 1:08 AM
Thread Re: [Alex] accessing enviromental variables from a template
regert 2499 Feb 27, 2003, 8:59 AM
Post Re: [regert] accessing enviromental variables from a template
Alex 2486 Feb 27, 2003, 9:15 PM