[Zope] Getting at form variables
Oleg Broytmann
phd@phd.russ.ru
Fri, 26 Nov 1999 13:04:32 +0000 (GMT)
On Fri, 26 Nov 1999, Shalabh Chaturvedi wrote:
> | <dtml-var "map[key]"> should work though.
>
> Yes it does work (except when unlike `key`, the name has a hyphen - eg.
> `sequence-index`):-
>
> <dtml-var "REQUEST[squence-index]"> doesn't work.
> Probably gets evaluated as sequence - index ('-' = subract).
> (These little gotchas!)
>
> But this achieves the same:-
> <dtml-let si=sequence-index>
> <dtml-var "REQUEST[si]">
<dtml-var "REQUEST[_['squence-index']]">
Oleg.
----
Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru
Programmers don't die, they just GOSUB without RETURN.