That's because on every page request you reset the value to zero

What are you trying to do?

Taz

----- Original Message -----
From: "FlashGuy" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, December 17, 2002 12:12 PM
Subject: Incrementing a variable


> Hi,
>
> For some reason I can't get my variable to increment when my page is
reloaded.
>
> I have the following in my application.cfm file
>
> <cfset child = 0>
>
> In my index.cfm file I have the following.
>
> <cfset child=child + 1>
>
> Everytime I refresh the page manually or by using an <a href within mu
file to reload mu index.cfm it doesn't increment?
>
>
>
>
> ---------------------------------------------------
> Colonel Nathan R. Jessop
> Commanding Officer
> Marine Ground Forces
> Guatanamo Bay, Cuba
> ---------------------------------------------------
>
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to