[phorm] Where would I calculate totals?

  • From: "Brian Haines" <phorm@xxxxxxxxxxxxxxxx>
  • To: <phorm@xxxxxxxxxxxxx>
  • Date: Thu, 1 Aug 2002 16:36:39 -0400

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.

Other related posts: