How do I display variables with # in them?


hello cf peeps.

 

i let users of site create unique usernames , upload pictures.  able search items exact name entered.

 

today user signed name goboy#4.

 

how can avoid getting cf error when on profile page output <cfoutput>#username#</cfoutput> username = goboy#4?

 

thanks!

you have escape them adding , additional # since middle of variable may have write kind of filter. future accounts create script not allow special characters before account created.



More discussions in ColdFusion


adobe

Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support