Are you trying to get this result?
1st view of index.cfm value=1
2nd view of index.cfm value=2
3rd view of index.cfm value=3
If so you are doing to wrong because this is what you are actually doing
1st view of index.cfm
appliation.cfm sets child = 0
index.cfm sets child = child + 1 = 1
2nd view of index.cfm
appliation.cfm sets child = 0
index.cfm sets child = child + 1 = 1
3rd view of index.cfm
appliation.cfm sets child = 0
index.cfm sets child = child + 1 = 1
Webguy
> -----Original Message-----
> From: FlashGuy [mailto:[EMAIL PROTECTED]]
> Sent: 17 December 2002 12:12
> To: CF-Talk
> 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
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm