Paul Chung Chee Soong wrote:
Hi Zopians. My problem is how can I make a hidden field to be a list with a default value? For instance, I try to make the following.
REQUEST.form['pno'] contains ['abc', 'def', 'ghi']
<snip> <input type=hidden name="pno:list" value="<!--#var "REQUEST.form['pno']"-->">
You may try <input type=hidden name="pno:tokens" value="<!--#var "join(REQUEST.form['pno'])"-->">
When I submit the above page, and try to refer to pno, it doesn't produce the result I want. For example:
<snip> <!--#in "REQUEST.form['pno']"--> <!--#var sequence-item--><BR> <!--#/in-->
produces only 1 item, "['abc', 'def', 'ghi']" and not 3 items, abc def ghi
Thanks for any comments,
--Paul
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )