Re: [Zope] [ZDP] Showing form data
From: Martijn Pieters <mj@antraciet.nl> To: Zope Mailinglist <zope@zope.org> Subject: [Zope] [ZDP] Showing form data Date: Thu, Mar 4, 1999, 4:30 AM
* 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.
The most supremely easy way is:: <PRE><!--#var REQUEST--></PRE> :) .jPS | jeffrey@digicool.com zope, through the web. www.zope.org
participants (1)
-
Jeffrey P Shell