Hi George, The answer is that it depends on what kind of object intercepts the GET request. If it's a DTML Method, you can just say: <dtml-var a> or if you want to use it as an argument to a function: <dtml-call "somefunction(a)"> If it's a Python Script, you need to do a bit more work: a = context.REQUEST.get('a') somefunction(a) If it's a Page Template.. it goes something like: <div tal:replace="request/a">The value of the "a" variable from the request</div> More information about all of this is available primarily in the Zope Book at http://www.zope.org/Documentation/ZopeBook/ . HTH, - C George M. Ellenburg wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Greets.
I'm (slowly) learning Zope, and loving every bit of it, but have run into a few snags. I'm quite comfortable with PHP, which I know is the source of a lot of my problems as Zope and PHP are two entirely different paradigms.
There's just so much information on the Zope website, that I'm having a difficult time finding the answers to certain problems, which unfortunately have left me in somewhat of a quagmire.
Can someone point me to the location where I might find more information on the following, with regards to Zope:
- Variable Passing through GET request
Here's what I'm trying to do: I'm trying to create a "tool-tip" (which is actually contained in a frame) and would like to pass a parameter to the DTML document which contains the HTML, etc. for the tool-tip. Something like: <a href="show_tip?a=b&c=d"> Q: Is there a magical Zope variable that contains the arguments passed on a GET URI (as in PHP?) Q: Must any variable be declared first?
- "case" statement Q: Does there exist the equivalent of a shell "case" statement in Zope? (This is in line with my previous questions).
Thanks in advance. Any help would be greatly appreciated.
- -- George M. Ellenburg <george@ellenburg.org> <http://www.ellenburg.org/> 3 Years and counting of being 100% Microsoft-free; and much more productive. Proud user of ASK <http://www.paganini.net/ask/>, the Active Spam Killer! - --- Sweater, n.: A garment worn by a child when its mother feels chilly. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org
iD8DBQE81zIUFItzMEWZZdgRApKRAJ4tDvN/aNCTF9n0/R8VzYoRij/N1QCgi/M8 /ufg+lqQKRebOAcTE0UdAvw= =gikE -----END PGP SIGNATURE-----
_______________________________________________ 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 )
-- Chris McDonough Zope Corporation http://www.zope.org http://www.zope.com "Killing hundreds of birds with thousands of stones"