Forms' "action" and (concatenation of) dtml-var's
Hello, The following works in zope: a small form with some action defined and for the rest only a submit button, if the action is simple, like: <form method=post action="index_html"> <input type="submit" name="" value="submit"> </form> will bring up the index_html page. But compare the following: <dtml-in expr="decrQuery(datum=(_.str(datum)))" next size=1 orphan=1 start=teller> <a href="<dtml-var URL><dtml-var sequence-query >teller=<dtml-var next-sequence-start-number>"> volgend image </a> </dtml-in> This will work, the link will take you to the next batch of 1. But: <dtml-in expr="decrQuery(datum=(_.str(datum)))" next size=1 orphan=1 start=teller> <form method=post action="<dtml-var URL><dtml-var sequence-query >teller=<dtml-var next-sequence-start-number>"> <input type="submit" name="" value=">"> </form> </dtml-in> will give a name error because a variable (datum) is not recognised. even when i paste the correct url, like: action="/toondecr?datum=1796/03/02&teller=33"> i will get the same name error What is it with forms that variables that were recognised a few lines earlier (thus, apart from the form, in the same context), won't be read? In other words: what am i doing wrong? Remarkable: when i get the name error, the url has already changed to the correct one, eg: /toondecr?datum=1796/03/02&teller=33 When i reload that page i get the same error message. When i copy the new url and paste it into a new window, i get the correct page. cheers, Dirk
participants (1)
-
Dirk Van.Laanen