[Zope] retrieving data from REQUEST.form

Nick Garcia ngarcia@codeit.com
Fri, 11 Aug 2000 11:21:50 -0700


jesse wrote:
> 
> <dtml-var "REQUEST.form['list']">
> 
> it comes out with
> 
> line one line two line three
> 
> All the line breaks dissapear! So there is nothing to replace! Does anyone have any ideas how I could solve this problem?

The line breaks don't disappear, they just don't mean anything in HTML. 
You can still replace them.  You can do <dtml-var
"_.string.replace(REQUEST.form['list'], '\n', '<br>')"> and it should do
what you want.

-- 
Nick Garcia | ngarcia@codeit.com
CodeIt Computing | http://codeit.com