Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8790951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:46:33+00:00 2026-06-13T22:46:33+00:00

I am trying to cfinclude a file and also pass some values to that

  • 0

I am trying to cfinclude a file and also pass some values to that specific file. I don’t know if it is possible so any reply is appreciated.

This is my code:

<cfoutput>

    <cfset path = "?id=#email_id#&contactid=#email_contactid#&ownerid=#email_ownerid#">

    <cfinclude template="/email_results#path#">

</cfoutput>

My mapping goes something like this:

E:\sites\exampleCom\cf_modules\reports\resultsTemplate.cfm

I did a #expandPath(“/email_results#path#”)# and it is giving me the correct output

(E:\sites\exampleCom\cf_modules\reports\resultsTemplate.cfm?id=123&contactid=123&ownerid=123)

but when I am trying to include the file it bugs out. Can I pass in variables through the cfinclude? Is this what it bugs out my code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:46:34+00:00Added an answer on June 13, 2026 at 10:46 pm

    No, you do not pass variables to an include page. The include will be execute in the same context, so it can directly see the email_id and other variables.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make it possible for an .msi file to open an
Trying to find some information on this but am unable to get any results
It often happens that a single C# solution contains some projects that are x86-specific
Trying to find some simple SQL Server PIVOT examples. Most of the examples that
In Scala (2.9.2) I am trying to create a function that provides some other
Trying to make this jQuery filter that uses .find case-insensitive. For example, when the
Trying to get a wildcard search to pick up on any text in org_name
I am trying to control cfinclude tags with javascript, never done it before and
I've read many times that Assemblies generated from F# or any other .NET language
I'm currently working on a problem that involves System.Reflection.Emit code generation. I'm trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.