alicia1234
asked on
How to get around restrictions on cfinclude not passing parameters?
I am trying to automate the printing of several pages. Part of what I want to do is this:
<body>
<cfinclude template="/recipes/recipe_ show.cfm?r ecID=5">
<p class="break"><br></p>
...
</body>
My problem is that the cfinclude, apparently, does not take parameters ... so how do I get the recipe ID to the recipe_show page?
<body>
<cfinclude template="/recipes/recipe_
<p class="break"><br></p>
...
</body>
My problem is that the cfinclude, apparently, does not take parameters ... so how do I get the recipe ID to the recipe_show page?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Just a pointer...Think of an include as if you cut and pasted the templates code directly into your main page instead of including it, not as some sort of external app.
ASKER
Just a note ... I had to do this:
<cfset URL.recID = 5>
<cfset URL.recID = 5>