[Zope] [ZDP] Showing form data (take two)
Martijn Pieters
mj@antraciet.nl
Thu, 04 Mar 1999 10:32:44 +0100
Take two, now with escaped HTML....
* 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.
--
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
------------------------------------------