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?recID=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?
alicia1234Asked:
Who is Participating?
 
aseusaincConnect With a Mentor Commented:
This should work:

<body>
<cfset recID=5>
<cfinclude template="/recipes/recipe_show.cfm">
<p class="break"><br></p>
...
</body>
0
 
aseusaincCommented:
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.
0
 
alicia1234Author Commented:
Just a note ... I had to do this:

<cfset URL.recID = 5>
0
All Courses

From novice to tech pro — start learning today.