954,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Hide the value in CFoutput

I would like to hide a value in cfoutput and have the browser not show it but the value is needed.

I have tried styling to have white text but it no working please help

<cfsetting enablecfoutputonly="true">
<cfparam name="q" default="" />
<cfquery name="qryGetCountry" datasource="dbtest">
select		*
from		Cities
Where Country Like <cfqueryPARAM value = "#URL.q#%" CFSQLType = 'CF_SQL_CHAR'> or RegionCity Like <cfqueryPARAM value = "#URL.q#%" CFSQLType = 'CF_SQL_CHAR'> or City Like <cfqueryPARAM value = "#URL.q#%" CFSQLType = 'CF_SQL_CHAR'> or Resort Like <cfqueryPARAM value = "#URL.q#%" CFSQLType = 'CF_SQL_CHAR'> 
Order by	Country
</cfquery>
<cfoutput query="qryGetCountry">
#qryGetCountry.RegionCity &" "& qryGetCountry.City &" "& qryGetCountry.Country &" Ref:"& qryGetCountry.ID##chr(10)#</cfoutput>


I would like to hide the qryGetCountry.ID the cfoutput is important as the other values are needed.

Thanks I hope that makes sense.

tapuwa2002
Newbie Poster
22 posts since Dec 2008
Reputation Points: 10
Solved Threads: 1
 

Could store the value in a hidden form field or non-visible html element (read about the "display" attribute). All depends on why you need to do this ..
http://www.w3schools.com/cssref/pr_class_display.asp

arrgh
Posting Whiz
381 posts since Dec 2008
Reputation Points: 32
Solved Threads: 47
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You