[Zope] A Couple of Questions
Ben Ocean
zope@thewebsons.com
Sun, 02 Dec 2001 00:39:04 -0800
At 10:44 PM 12/1/01 -0500, you wrote:
>heh heh. just finished this script an hour ago.
>#3. passing variables implicitly
>
><dtml-if QUERY_STRING>
> <dtml-call "REQUEST.set('URLVariable',QUERY_STRING)">
></dtml-if>
>
>This assumes that there is a single URL variable that is not defined.
>www.foo.com?bar
>so...bar==QUERY_STRING
So, just to be clear, if my ZServer receives a request for page
http://zen.com/nirvana?yep=uhuh
and I have this in DTML Document nirvana:
<dtml-if yep>
<dtml-call "REQUEST.set('coltrain',yep)">
</dtml-if>
then I can use variable coltrain and it will have a value of uhuh. Right?
TIA,
BenO
>Hope that helps.
>I think there is a how-to on zope.org but I couldnt find it...
>-Trevor
>
> > -----Original Message-----
> > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Ben
> > Ocean
> > Sent: Saturday, December 01, 2001 10:33 PM
> > To: zope@zope.org
> > Subject: [Zope] A Couple of Questions
> >
> >
> > 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?
> > 2. How do I decode them?
> > 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
> >
> >
> >
> > _______________________________________________
> > Zope maillist - Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > ** No cross posts or HTML encoding! **
> > (Related lists -
> > http://lists.zope.org/mailman/listinfo/zope-announce
> > http://lists.zope.org/mailman/listinfo/zope-dev )