[phorm] Re: Where would I calculate totals?

  • From: "Brian Haines" <phorm@xxxxxxxxxxxxxxxx>
  • To: <phorm@xxxxxxxxxxxxx>
  • Date: Thu, 1 Aug 2002 22:35:27 -0400

Answered my own question. You can use the $variables as usual. I guess I
could have tested and then posted (or not posted likely).

Thanks Alan! Great Program!

Brian Haines

-----Original Message-----
From: phorm-bounce@xxxxxxxxxxxxx [mailto:phorm-bounce@xxxxxxxxxxxxx]On
Behalf Of Brian Haines
Sent: Thursday, August 01, 2002 4:37 PM
To: phorm@xxxxxxxxxxxxx
Subject: [phorm] Where would I calculate totals?



Hi everyone!

Despite my recent rant about Phorms documentation and ease of use, I LOVE
THE PROGRAM, and I hope that was as obvious as my frustration at that
moment.

I would like to use Phorm to take orders from a Web site. Simple two item
shopping cart. I would like to calculate totals and print a receipt as the
_ack.php page.

I am not sure how I would do this. My variables are in tags like these
{{variable}} and I need real PHP variables like these $variable.

Do I assign new variables like this

$variable = {{variable}};

or do I just perform calculations on {{variable}} like this

$item1Total = {{variable}} * 65;

The documentation indicates that we can include PHP code with the
$PHORM_PARSPHP variable set to true, but I can't see the answer to the
above.

Thanks,

Brian


-------------------------------------------------
You are receiving this message because you are subscribed to the Phorm
mailing list. To send messages to the mailing list, simply send email to
phorm@xxxxxxxxxxxxx from the address you have subscribed. You may
unsubscribe from the list by sending email to phorm-request@xxxxxxxxxxxxx
with 'unsubscribe' in the SUBJECT field.



-------------------------------------------------
You are receiving this message because you are subscribed to the Phorm mailing 
list. To send messages to the mailing list, simply send email to 
phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe 
from the list by sending email to phorm-request@xxxxxxxxxxxxx with 
'unsubscribe' in the SUBJECT field.

Other related posts: