[ZDP] Edited version of REQUEST Dictionary FAQ

Martijn Pieters mj@antraciet.nl
Fri, 05 Mar 1999 12:39:54 +0100


* How can I show all form data/cookies/REQUEST vars without knowing their
names?

    By using the #in tag, you can easily all show all data in any dictionary
    object, like REQUEST.form, REQUEST.cookies and even REQUEST itself. Just
    call the items() method of the dictionary, and the #in tag will provide
    a sequence-key and sequence-item variable for every item in the
    dictionary.

    Show showing all form data can be done like this::

        <!--#in "REQUEST.form.items()" sort-->
          <!--#var sequence-key-->:<!--#var sequence-item--><BR>
        <!--#/in-->

    Use REQUEST.cookies.items() for all your cookies, and REQUEST.items()
    for all REQUEST variables, including CGI Environment variables.
    
    If you mind the format, you could use <PRE><!--#var REQUEST--></PRE> as
    a shortcut.

--
M.J. Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-6254545 Fax: +31-35-6254555
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------