[pmwiki-users] fox: summ fields

Hans design5 at softflow.co.uk
Tue Jun 10 16:12:45 CDT 2008


Tuesday, June 10, 2008, 2:31:12 PM, noskule wrote:

> I actually want to calculate tree form field values together.

> (:input text date:)
> (:input text hours:)
> (:input text minutes:)
> (:input hidden PublishDate:)

> then I sum them together
> {(strtotime {$$date})} + {$$hours}*3600 + {$$minutes}*60

> and want to save them as unixtime to "PublishDate" ptv.

Install Cookbook.MarkupExprPlus if you have not done yet.
Then you can nest 'add'  and 'mul'  etc markup expressions.
Use the syntax {$$(expression ........ )} in the form
or template.


  ~Hans




More information about the pmwiki-users mailing list