On Mon, Jun 07, 1999 at 11:01:28AM +1200, Graham Chiu wrote:
I have a form with 50 or less items on it. The names of the form variables are taken from the result of a database query.
In the examples I've seen, the target document already knows the names of the variables, which in some examples are properties of the parent folder.
How would a document process a form when it doesn't know the names of the variables. Is there a list of the variable names that the target document knows, and can iterate over?
Yep - form variables are returned in a dictionary in the REQUEST namespace, so what you're looking for is: <!--#in "REQUEST.form.items()"--> <!--#var sequence-key--> : <!--#var sequence-item--><BR> <!--#/in--> As Amos is fond of saying: The DTML User's Guide is your friend. Ross -- Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu> NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005