<dtml-call "REQUEST.set('formfield',_.string.strip(REQUEST['formfield']))"> at lot of writing for: <? $formfield = trim($formfiled) ; ?> but I bet you're a geek so you type fast.
Hey all,
Another question. How do you trim a form field with dtml? I have JavaScript doing it when the form is submitted, but that doesn't help much for those browsers whose user's have disabled JavaScript.
In ColdFusion, or even the dreaded ASP, I had a Trim() function at my disposal. Is there something that I can do with dtml - possibly a python expression that I use in a <dtml-call expr=""> type thingy?
Thanks in advance, Tommy
Innovation: The Best Way To Predict The Future ... Is To Create It.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )