[Zope] How to get the variable in an URL ?
Thomas B. Passin
tpassin@mitretek.org
Wed, 24 Apr 2002 10:38:59 -0400
[Pascal Samuzeau]
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???
[Tom P]
If that url is used to request a page from you called "document", then you
will have a REQUEST object available to the page. It will contain a
property called "variable", just as if a form had been submitted.
You can see the entire REQUEST by writing
<dtml-var REQUEST>
You can display the property like this:
<dtml-var "REQUEST['variable']">
Of course, your spelling has to be correct.
Cheers,
Tom P