[Zope] How to get the variable in an URL ?

Ian J Cottee icottee@bluefountain.com
28 Apr 2002 09:13:36 +0900


I'm sure I'm missing something obvious in all these replies but why
doesn't he just do <dtml-var variable> ??

Ian

Dieter Maurer <dieter@handshake.de> writes:

> Pascal Samuzeau writes:
>  > 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, I     
>  > haven't a form.                                                       
>  >                                                                       
>  > What i the syntax t oget this variable???                             
> The syntax is correct:
> 
>     <dtml-var "REQUEST.form['variable']">
> 
> should give you "try-it".
> 
> If it does not, maybe your browser does something strange.
> Use "tcpWatch" or another TCP logger to check whath the browser
> precisely sends to Zope (or look into "var/Z2.log").
> 
> 
> Dieter
> 
> 
> _______________________________________________
> 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 )