[Zope] Passing a list using hidden form fields

Jim Washington jwashin@vt.edu
Sun, 25 Feb 2001 23:11:51 -0500


Hi, Salvatore

You might try sending the parts of the list separately:

<dtml-in ordine>
   <input type="hidden" name="ordine:list" value="<dtml-var sequence-item>">
</dtml-in>

I'm certain that would work; I have not heard of a more elegant method.

-- Jim Washington

Salvatore Sciacco wrote:

> Hello,
> 
> I have a form wich collect several rows of info at once using the :records
> input modifier:
> 
> <FORM action="checkout" method="POST"
> <input type="hidden" name="ordine.codice:records" value="&dtml.missing-codprod;">
> <input type="hidden" name="ordine.descrbreve:records" value="&dtml.missing-descrbreve;">
> <input type="hidden" name="ordine.costo:float:records" value="&dtml-costo;">
> <input type="text" name="ordine.qty:int:records" size="2" value="0">
> 
> 
> 
> The method checkout receive the list ordine correctly and can process it in a
> <dtml-in> statement. Then I need to pass the same list to another method
> using a hidden field. I put:
> <input type="hidden" name="ordine" value="&dtml-ordine;">
> I've also tried:
> <input type="hidden" name="ordine:records" value="[&dtml-ordine;]">
> 
> but the list is converter to string. What is the rigth method to pass a list
> through a hidden field?
> 
> Thank you in advance
>