I think to recall that PHPTAL knows about 'boolean' attributes like 'checked' and 'selected'. Have you tried something like this?
<input type="checkbox" name="agreement" value="1" tal:attributes="checked agreement" /> iván On Sat, Apr 26, 2008 at 6:57 PM, Guillaume Lecanu <[EMAIL PROTECTED]> wrote: > > Hi, > > How is it possible to remove an attributes (or to add it) depending of a > value/condition ? > > > If ($agreement) { > > <input type="checkbox" name="agreement" value="1" checked="checked" /> > > } else { > > <input type="checkbox" name="agreement" value="1" /> > > } > > Thanks ! > _______________________________________________ > PHPTAL mailing list > PHPTAL@lists.motion-twin.com > http://lists.motion-twin.com/mailman/listinfo/phptal > >
_______________________________________________ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal