<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thx for the message<br>
<br>
So in the example you gave, is math the name of a variable?<br>
<br>
here is the syntax of my current zap form:<br>
<br>
--------------------------------<br>
(:input text E1 {$:E1} size=4:)<br>
(:input text E2 {$:E2} size=4:)<br>
(:input text E3 {$:E3} size=4:)<br>
(:input text E4 {$:E4} size=4:)<br>
(:input text E5 {$:E5} size=4:)<br>
(:input text E6 {$:E6} size=4:)<br>
(:input text E7 {$:E7} size=4:)<br>
<br>
Total {(math '{$:E1}+{$:E2}+{$:E3}+{$:E4}+{$:E5}+{$:E6}+{$:E7}')}<br>
--------------------------------<br>
<br>
what I want to do is assign the output of the math calculation to
another variable for use in another calculation.<br>
<br>
TIA<br>
Karl<br>
<br>
The Editor wrote:
<blockquote
 cite="mid:fec7cf150709201214h666404dcvcf7defafa79cdbd0@mail.gmail.com"
 type="cite">
  <pre wrap="">I'm not using PmWiki anymore, but as I recall, ZAP has a built in math
command that can be used for this right in the form, before the data
values are saved. Somethig like

(:input text field1 3:)
(:input text field2 3:)
(:zap math="{=field1} + {=field2}":)
(:zap savedata=math:)

Pardon any problems in the syntax as it's been quite a while since I
switched to ZAPwiki.

Cheers,
Dan


On 9/20/07, Karl <a class="moz-txt-link-rfc2396E" href="mailto:kharris@bnin.net">&lt;kharris@bnin.net&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I am using a form to save numeric values to a series of variables.  Then
I use math to output totals of of those variables to the pmwiki screen.
What I want to do is assign these totals to other variables so I can
perform further calculations on these totals.

Can anyone help with the syntax needed to do something like this.

Karl

_______________________________________________
pmwiki-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a>
<a class="moz-txt-link-freetext" href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a>

    </pre>
  </blockquote>
  <pre wrap=""><!---->


  </pre>
</blockquote>
<br>
</body>
</html>