This one's been stumping me for the past little while. On my main project, users have the ability to add in a little subscriber form. I surround the code for this subscriber form with a pair of HTML comments, with the text "StartSubForm" and "EndSubForm" in these comments. If an existing subscriber is viewing the page, then I don't want to display the subscriber form - it's redundant - so I sniff out if the two above comments are in the code, and do a ReReplace to remove the form:
<cfset OutputString = ReReplaceNoCase(OutputString, "<!-- StartSubForm.*EndSubForm -->", "", "ALL")> This has worked great until today - one client has, on a page within his area, a quiz form. Whenever the above code snippet runs, on this page and this page *only*, as far as I can tell, it breaks. The code the snippet is trying to replace is *identical* on all of said client's pages - it's just the one page, with the quiz form (the code for which comes along a ways later in the page than the subscriber form I'm trying to replace), that hoses up. Nowhere in the quiz code do those "SubStartForm" or "EndSubForm" strings show up, either. Any thoughts? --Scott ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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