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
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
Hello Jim, it works. Thank you. Monday, February 26, 2001, 5:11:51 AM, you wrote: JW> Hi, Salvatore JW> You might try sending the parts of the list separately: JW> <dtml-in ordine> JW> <input type="hidden" name="ordine:list" value="<dtml-var sequence-item>"> JW> </dtml-in> JW> I'm certain that would work; I have not heard of a more elegant method. JW> -- Jim Washington JW> 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
-- Best regards, Salvatore mailto:sas@prometeus.net
participants (2)
-
Jim Washington -
Salvatore Sciacco