the patch for the manual that explains how load_response works, please
comment before i commit it (I'm sure the English native speakers have
to say something...)

-- Massimo


Index: rivet.xml
===================================================================
--- rivet.xml   (revision 584101)
+++ rivet.xml   (working copy)
@@ -914,7 +914,17 @@
      <refsect1>
       <title>Description</title>
       Load any form variables passed to this page into an
-       array.
+       array. If <command>load_response</command> is called without
+       arguments the array <option>response</option> is created in
+       the scope of the caller. If the variables var1,var2,var3...
+       having values val1,val2,val3... are passed to the page, the
+       resulting array will be a collection mapping var1,var2,var3...
+       to their corresponding values. <command>load_response</command>
+       was inspired by the same NeoWebScript procedure in the way
+       it deals with multiple assignements: if a variable
+       is assigned more than once the corresponding array element will be a
+       list of the values for the variable. This can be useful in the case
+       of forms with checkbox options that are given the same name.
      </refsect1>
    </refentry>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to