[Zope] Re: sendmail tag

Jason Bush jason@nol.org
Thu, 16 Jan 2003 13:25:21 -0600


Sungmook Kim wrote:

> thanks.
>
> i was successful inserting it into a dtml document for a sendmail tag.
>
> but how do i use <dtml-var "HTTP_X_FORWARDED_FOR"> in a
>
> , e.g. page template for a guestbook? so it returns the ip, too.
>
> i have this page template code for my guestbook, and zope did not allow
>
> to put that ip variable.
>
> cheers,sungmook
>
Bear with me as I am a bit rusty using ZPT but to display the IP you 
would use

<span tal:replace="structure request/REMOTE_ADDR"> for non proxy 
requests</span>
and
<span tal:replace="structure request/HTTP_X_FORWARDED_FOR"> for proxy 
requests</span>

-- 
"The wise man desires to be slow to speak but quick to act." --Confucious
Jason Bush  |  (402) 471-6517  |   jason@nol.org   |   http://www.nol.org