Thank you Richard,
send_email("$path_templates/message.txt",
{
%data,
ip_address => $ip_address
did the trick.
thanks again!
Jim
--- Richard Jones <powerhouse@servicenterprises.com>
wrote:
> You have to put it in every location, that calls
> each template.
> Each Subroutine has their own variables, used in the
> template.
>
> Richard.
>
>
>
> ----- Original Message -----
> From: "baaad doggy" <baaad_doggy@yahoo.com>
> To: "discuss-list" <discuss-list@opensrs.org>
> Sent: Wednesday, April 23, 2003 10:56 AM
> Subject: lost variable help needed.
>
>
> > Hi,
> >
> > It seems like I'm loosing a variable in my script
> and
> > I just can't figure out why.
> >
> > In reg_system.cgi I have declared
> >
> > # global defines
> > my $ip_address = $ENV{REMOTE_ADDR};
> >
> > and down farther I have
> >
> > $HTML{ip_address} = $ip_address;
> >
> > so that when I put {{ip_address}} in avail.html it
> > shows the user/customer their IP address just
> exactly
> > the way I want it to. However, when putting the
> same
> > {{ip_address}} in message.txt it doesn't show up
> in my
> > email notification. Neither will it go into any of
> the
> > other html templates. It just makes it to the
> first
> > template, and then seems to get lost.
> >
> > Does anyone have an idea what I'm missing here?
> >
> > Thanks,
> >
> > Jim
> >
> > __________________________________________________
> > Do you Yahoo!?
> > The New Yahoo! Search - Faster. Easier. Bingo
> > http://search.yahoo.com
> >
> >
__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com
This archive was generated by hypermail 2.1.3 : Tue Oct 19 2004 - 23:37:41 EDT