[Zope] dtml-if fustration!

Tim Hicks tim@sitefusion.co.uk
Sat, 24 Aug 2002 19:06:40 +0100


> Hi Tim,
>
> Thanks - I couldn't get either of them to work, but whilst trying,
realised
> (rather foolishy!) that I can of course do this....
>
>     <dtml-if SelectSID>
>       SelectSID = <dtml-var SelectSID>
>       <input type=hidden name=SelectSID value=<dtml-var SelectSID>>
>     </dtml-if>
>
> ...which as I am doing this inside forms, solved the problem! at least in
> the current project...
>
> so if anybody has got an answer, I will still need it when I go back to
> other projects, I feel!
>
> but thanks for the response anyway! :)

Oh, so you were trying to pass SelectSID between REQUESTS, not just use the
variable further down the page.  In that case, the hidden form field is a
good solution.  That or using the session machinery.

tim