[Zope] How to get the variable in an URL ?
hans
hans@beehive.de
Wed, 24 Apr 2002 13:18:51 +0100
Pascal Samuzeau wrote:
> When I try <dtml-var "REQUEST.form['try-it']> I have the following
> error :
>
> Type de l'erreur : KeyError
> Valeur de l'erreur : keyword
>
> Traceback (innermost last):
of course. try-it was the value, not the key
> When I try <dtml-var "REQUEST"> I have the URL , URL0, BASE3
> as:
>
> http://website/folder/document,
>
> but never I see my parameter "variable"
can't believe this
> > Pascal Samuzeau wrote:
> > > Hello,
> > > I have a link as :
> > > <a href="http://website/folder/document?variable=try-it">Try</a>
>
> > > I want to get the variable in my document.
> > >
> > > I did REQUEST.form['varibale']. But it doesn't work, of cource,
maybe variable?
> I
> > > haven't a form.
> > >
> > > What i the syntax to get this variable???
> >
> > maybe REQUEST['variable']?
> > whats in your REQUEST (is "variable" present?)?
> >
i wrote this just to assert whats in the request.
i still dont believe.
whats in the request?
--
Who's got only a hammer sees the world as a nail
hans augustin (software developer) hans@beehive.de
beehive elektronische medien GmbH http://www.beehive.de
phone: +49 30 847-82 0 fax: +49 30 847-82 299