• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

coldfusion

Community Beginner ,
Aug 24, 2015 Aug 24, 2015

Copy link to clipboard

Copied

  I am new to coldfusion can someone clear my doubt please.I have a function Test_Func. I want to assign the parameter(input) value to a variable myname).Kindly help

function  Test_Func(input)

{


<cfset var myname= " ">

}

Views

167

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Aug 24, 2015 Aug 24, 2015

Copy link to clipboard

Copied

LATEST

You are trying to combine script and tag based syntax.  This will not work.  Below would be the proper syntax based on your code. 

function  Test_Func(input)

{

var myname= arguments.input;

}

You might want to take a look at Learn CF in a Week‌ .  That should get you on the right track to what you are trying to do.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation