Petr Knapek writes:
I need to put a list attribute into URL and doesn't know the correct syntax. When I tried it, was represented as string in REQUEST.
Here is my code:
<dtml-let l="['foo', 'bla']"> <dtml-call "RESPONSE.redirect(new_url+`l`)"> </dtml-let>
where new_url is defined above something like this: 'https://any.url/method_name?ids=' You would create the following URL:
https://..................?ids:list=foo&ids:list=bla&ids:list=...... Note that your list values must be "url_quote_plus" encoded for this, if they contain special characters including white space! It is not easy to build such an URL in DTML (it is possible, though). Use a Python Script. There, you have "for" loops and assignment and can access the "url_quote_plus" encoder (--> mailing list archives). Dieter