[Zope] Passing a list using hidden form fields

Salvatore Sciacco Salvatore Sciacco <sas@prometeus.net>
Mon, 26 Feb 2001 04:40:05 +0100


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

-- 
Best regards,
 Salvatore Sciacco                          mailto:sas@prometeus.net