Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Re: Form question

$
0
0

IIF and DE aren't widely used these days in CF. 

 

Are the form fieldnames the same as the query columns?  If so you could do something like:

 

IF using the query

  set stuData = yourQueryName

ELSE

  set stuData = form

/IF

 

Then refer to it like:

<input type="text" value="<cfif len(stuData[fieldname])>#stuData[fieldname]#</cfif>" />


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>