Just wondering if there is a better way of doing this..
I have a site that that customizes documents with about 5-10 (could expand later on) elements that customizable - the example I can think of is a mail merge.
I say this as end users are entering the data and I want to make it easy for them to utilize customizable fields..
~FirstName~ (replace with) SESSION[User].FirstName
~LastName~ (replace with) SESSION[User].LastName
~City~ (replace with) SESSION[User].City
~Country~ (replace with) SESSION[User].Country
and so forth...
but I will add to it at a later date
<!--- Get Text from CFC Query --->
<cfset myText = ReplaceNoCase(getMyText.TextBlock, '~FirstName~', '<strong>#SESSION[User].FirstName#</strong>', 'ALL')>
<cfset myText = ReplaceNoCase(getMyText.TextBlock, '~LastName~',
'<strong>#SESSION[User].LastName#</strong>', 'ALL')>
<cfset myText = ReplaceNoCase(getMyText.TextBlock, '~City~',
'<strong>#SESSION[User].City#</strong>', 'ALL')>
and then I could go through all X amount of other ones..but is there a quicker way of doing this instead of CFSEtting and REplace 10 times..
Thanks
:)
====================================
Postal: Po Box 3462 Dural, NSW 2158
Email: mailto:[EMAIL PROTECTED]
FireFly Internet Phone: 80011777
- [cfaussie] Reg Ex or other Carl Vanderpal
- [cfaussie] Re: Reg Ex or other David Grubb
- [cfaussie] Re: Reg Ex or other Haikal Saadh
- [cfaussie] Re: Reg Ex or other David Grubb
- [cfaussie] Re: Reg Ex or other Carl Vanderpal
- [cfaussie] Re: Reg Ex or other David Grubb
- [cfaussie] Re: Reg Ex or other Chris Velevitch
- [cfaussie] Re: Reg Ex or other Shib71
- [cfaussie] Re: Reg Ex or other Chris Velevitch
- [cfaussie] Re: Reg Ex or other Carl Vanderpal
- [cfaussie] Re: Reg Ex or other Robin Hilliard
