[Zope] A Couple of Questions

Oliver Bleutgen Oliver Bleutgen <myzope@gmx.net>
Sun, 2 Dec 2001 14:39:14 +0100


Hi Ben,

> Hi;
> 1. If I have a string with characters that are illegal to pass into an
> URL,
> such as whitespace, how do I encode them?

<dtml-var variable url_quote>
or
<dtml-var variable url_quote_plus>

search the ZMI-help

> 2. How do I decode them?

doesn't this happen automaticly?

> 3. How do I capture a variable that is sent to me from another Web site
> that is appended to the URL after a question mark?
> TIA,
> BenO

the variable should be contained in REQUEST, as this is the normal
GET method for forms.
You can try all of the abouve by making a simple dtml-method
which just prints REQUEST. Look at what you get....

cheers,
oliver