9 Oct
2003
9 Oct
'03
2:03 p.m.
K. Praveen Kumar wrote:
<dtml-var la_header>
well, you're using DTML which is pretty silly, should be using ZPT for presentation...
<form name="data" ACTION="test_back" METHOD="POST"> <input type="text" name="date2" size="15" value="">
try changing that to: <input type="text" name="date2:date" size="15" value="">
test_back:
<dtml-if "submit=='update'">
<dtml-if "date2==_.None"> <dtml-var date2 null=""> <dtml-else> <dtml-call "REQUEST.set('date2',date2.strftime('%Y/%m/%d'))"> <dtml-var date2 null=""> </dtml-if>
</dtml-if>
This lot should really be a python script... Chris