Adobe Community
All community
This category
This board
Knowledge base
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results forÂ
ShowÂ
 onlyÂ
|
Search instead forÂ
Did you mean:Â
Global community
Language:
Deutsch
English
Español
Français
Português
日本語コミュニティ
Dedicated community for Japanese speakers
í•œêµ ì»¤ë®¤ë‹ˆí‹°
Dedicated community for Korean speakers
Sign In
Exit
Home
ColdFusion
Discussions
How to set a global variable
Home
ColdFusion
Discussions
How to set a global variable
0
Upvote
How to set a global variable
nick_endgame
Explorer
,
/t5/coldfusion-discussions/how-to-set-a-global-variable/td-p/1020716
Oct 12, 2006
Oct 12, 2006
Copy link to clipboard
Copied
Hi,
How can I set a global variable and how do i "get" that variable?
Thanks
TOPICS
Advanced techniques
Views
348
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
2 Replies
2
Jump to latest reply
dimsis
New Here
,
/t5/coldfusion-discussions/how-to-set-a-global-variable/m-p/1020717#M92466
Oct 12, 2006
Oct 12, 2006
Copy link to clipboard
Copied
create an application.cfm fil on the root of your app folder
and in there type:
<cfscript>
Request.YourVariable = 'Hello World';
</cfscript>
Then you can call it in any other page like this
<cfoutput>#Request.YourVariable#</cfoutput>
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
nick_endgame
AUTHOR
Explorer
,
/t5/coldfusion-discussions/how-to-set-a-global-variable/m-p/1020718#M92467
Oct 12, 2006
Oct 12, 2006
Copy link to clipboard
Copied
LATEST
How do I set the globale variable by use of another local var?
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Post Reply
Preview
Exit Preview
never-displayed
You must be signed in to add attachments
never-displayed
Â
Resources
Documentation
ColdFusion User Guide