Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Set Variable to Environmental Variable

Quote Reply
Set Variable to Environmental Variable
Hi:

For tracking purposes, there are a couple pages I need to note an evironmental variable. I am trying this code:

<%ifnot env_h%>
<%set env_h = $ENV{"REMOTE_ADDR"}%>
<%endif%>

but it is not setting env_h.

Any ideas how to set this on the page?

Thanks!
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Set Variable to Environmental Variable In reply to
Did you try setting a template global instead?

Peter
Quote Reply
Re: [Petrocelli] Set Variable to Environmental Variable In reply to
Hmmm- that does it! Thank you! Wink
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Set Variable to Environmental Variable In reply to
Veterans are always welcome! Wink