This post originated from an RSS feed registered with Java Buzz
by Alan Williamson.
Original Post: CFML Tip; Passing large text around in hidden form variables
Feed Title: Technical @ alan.blog-city.com
Feed URL: http://www.ibm.com/us/en/
Feed Description: (Technical) the rants of a java developer trapped in the body of a java developer!
Sometimes it is necessary to pass large blocks of text around in hidden input forms. For example if you are developing a wizard type input or maybe you are passing data on through. Complications arise when you need to pass blocks of text that may contain carriage returns, or weird characters that may through your form variable.
In CFML you can easily get around all this nasty encoding and decoding complications by Base64 encoding your text while inserting it into your hidden form variable. For example: