As a humourous aside, this whole thread probably wouldn't have happened had you done the 'right thing' and uses a Script (Python) for this logic. Still, cheers for the laughs involved in reading peopel squabling over where that </dtml-let> and <dtml-call "REQUEST.set(x,y)"> should go, it's made my morning :-) cheers, Chris