Holger Lehmann <[EMAIL PROTECTED]> writes:

> Hello everyone,
> I need a quick hint.
> How do I check wether there are any "form" elements in the request.
> And how can I only acces those ?
> I want to pass those, and only thos on to a ZClient call to another website. 
> I do have a request like this:
> http://server/foo/bar?name=bar&param=foo&param2=baz
> Now I want to isolate name, param and param2.
> I need to construct a request like this:
> <dtml-if <any parameters at all>>
>   <dtml-in <all form parameters in REQUEST>>
>     ..... do something
>   </dtml-in>
> </dtml-if>

Some hints to play with (tested on 2.3.0):

<dtml-if "REQUEST.form">
  <dtml-var "REQUEST.form"><br>
  <dtml-var "REQUEST.form.keys()"><br>
  <dtml-var "REQUEST.form.values()"><br>
  <dtml-var "REQUEST.form.items()"><br>
  <dtml-in "REQUEST.form.items()">
    <br><dtml-var sequence-index>: <dtml-var sequence-key>=<dtml-var sequence-item>
  No parameters given!


Siggy Brentrup - [EMAIL PROTECTED] - http://www.winnegan.de/
****** ceterum censeo javascriptum esse restrictam *******

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to