Resolving variables inside a Coldfusion string

后端 未结 4 649
长情又很酷
长情又很酷 2021-01-14 00:28

My client has a database table of email bodies that get sent at certain times to customers. The text for the emails contains ColdFusion expressions like Dear #firstName# and

4条回答
  •  太阳男子
    2021-01-14 01:13

    If the variable is in a structure from, something like a form post, then you can use "StructFind". It does exactly as you request. I ran into this issue when processing a form with dynamic inputs.

    Ex.

    StructFind(FORM, 'WhatYouNeed')
    

提交回复
热议问题