At 04:33 PM 9/12/2003 -0400, you wrote:
>Just out of curiousity, why don't you just suppress the form with CFIF? 
>Seems to be much more efficient.
>
>Since you somehow "know" a subscriber - let's say the 
>session.subscriber_id is set and is not NULL:
>
><cfif NOT isDefined("session.subscriber_id") OR #session.subcriber_id# LTE 0>
>(insert form)
><cfif>

I used to, but then we switched to generating static HTML pages and doing 
little replaces on the contents before displaying, instead of our old way 
which was doing a ton of DB queries and building the page on-the-fly. Since 
I'm reading in my content from a static file, I can't just surround that 
with a <cfif> statement.

What's really odd, now that I think about it, though... other note I 
mentioned figuring out a way around my problem - break the file into two 
bits, do the replace on one part, and put'em back together - works fine. 
But I also do other replaces on these pages, every time - some IDs that I 
pass in the URLs that *have* to be dynamic - so I generate my static pages 
with some unique strings in place of these values, like "[[SubID]]", then 
replace that string with the value passed along with the previous page. But 
now that I ponder that, I'm just doing Replace() and not ReReplace()... 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

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

Reply via email to