Hi, how can I use a variable that I passed through a form with a GET method? Example: ----------- <form name="busca" action="pesquisa.htm" method=get target="mainFrame"> <input name=PrincipiaSearchSource size=12 value=""> <input type=hidden name=raw =""> </form> ----------- pesquisa.htm <dtml-if PrincipiaSearchSource> <p><dtml-var PrincipiaSearchSource></p> </dtml-if> ------------ How can I make this work? And if I pass the argument by link... how can I use the variable? Thanks. ________________________________________________ Don't E-Mail, ZipMail! http://www.zipmail.com/
Zope put the request parameters (retreived from GET or POST requests) in the namespace. In your example:
Example: ----------- <form name="busca" action="pesquisa.htm" method=get target="mainFrame"> <input name=PrincipiaSearchSource size=12 value=""> <input type=hidden name=raw =""> </form> -----------
you have access to the variables PrincipiaSearchSource and raw in pesquisa.htm, using e.g. <dtml-var PrincipiaSearchSource> Emmanuel
participants (2)
-
After Dark -
Emmanuel Viennet