Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to get around restrictions on cfinclude not passing parameters?

Posted on 2006-11-06
3
Medium Priority
?
760 Views
Last Modified: 2013-12-24
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?
0
Comment
Question by:alicia1234
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
aseusainc earned 1000 total points
ID: 17886464
This should work:

<body>
<cfset recID=5>
<cfinclude template="/recipes/recipe_show.cfm">
<p class="break"><br></p>
...
</body>
0
 
LVL 7

Expert Comment

by:aseusainc
ID: 17886470
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
 

Author Comment

by:alicia1234
ID: 17889832
Just a note ... I had to do this:

<cfset URL.recID = 5>
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question