[Zope] <SELECT> in forms.

Guy Davis davis@arc.ab.ca
Fri, 14 Jan 2000 11:30:01 -0700


There is probably a really simple explanation for this, but I can't
figure it out.  Any help is appreciated.


I am reworking the Search interface for a SQL Query, it works fine using
the INPUT tag generated automatically. 
<input name="priority" width=30 value="">

However if I use the following select tag in place of the plain INPUT,
the 'priority' variable is never pushed onto the request and my query
method complains that it's missing.

<SELECT NAME="priority" SIZE=7>
<dtml-in priority_choices>
  <OPTION><dtml-var sequence-item></OPTION>
</dtml-in>
</SELECT>

In the above statement, 'priority_choices' is a 'lines' property of the
containing folder.  This gives me the list of priorities, I'm looking
for.

How do I properly use the SELECT tag to ensure the variable gets put
into the REQUEST when the form is submitted? I looked at the Selection
List How-To, but this doesn't seem to address this problem. 
-- 
       Guy Davis    mailto:davis@arc.ab.ca
  (403) 210-5334    Alberta Research Council