Hi, Try sending it throught the REQUEST since that is where you set it. If you want it to be temporary, use the <dtml-let pageurl="REQUEST['URL0']"> around the in. I personally use a little trick to put a character after every operand statement (in, if, else, except, etc) so I can see what has passed and what has failed. Nested statements can be a bit tricky if you aren’t sure where youre at. Btw, Gadfly is more than capable of meeting your needs with this. <dtml-in "getPageViews(pageurl=REQUEST['pageurl'])"> Regards, Paul Zwarts -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of Eiffel Sent: Sunday, October 28, 2001 4:16 AM To: Zope-List Subject: Re: [Zope] How can I let ZSQL method know the variable i define. hi: i really crazy about this question, i simplify the question i rewrite the code and simplify it <dtml-call "REQUEST.set('pageurl', URL0)"> <dtml-in "test_for_page_count(pageurl=pageurl)"> <dtml-in "getPageViews(pageurl=pageurl)"> <center> This page has been viewed <b><dtml-var pagecount></b> time. </center> </dtml-in> </dtml-in> it disply nothing, when i hard code pageurl variable and rewrite it like this <dtml-call "REQUEST.set('pageurl', URL0)"> <dtml-in "test_for_page_count(pageurl='/')"> <dtml-in "getPageViews(pageurl='/' )"> <center> This page has been viewed <b><dtml-var pagecount></b> time. </center> </dtml-in> </dtml-in> well, this time it works, so it means that <dtml-in "test_for_page_count(pageurl=pageurl)"> could not forward parameter to ZSQL method. even I rewrite code like this, <dtml-in "test_for_page_count(_.None,_,pageurl=pageurl)"> still does not work. i was wondering that if zope's builtin database gadfly is fit for this small code. f櫀f微二顶儕煵~ⅰ膊?j柌微櫃枈y微櫃枈y