If we have a confirmation page that displays the form values, for example:
<?php echo((isset($_POST["formPETS"]))?$_POST["formPETS"]:"") ?>
...is it possible to do a calculation using PHP without involving eCart? So the person fills in the form, submits it, and are then shown a result page which has taken the values from the form and perform calculations on them in order to present a value?
So, if the above formPETS field was submitted as "2", which each pet costing £15.00 for example, a calculation along these lines would be done on the results page:
<?php echo((isset($_POST["formPETS"]))?$_POST["formPETS"]:"") ?> x 15
I knew how to do this in Classic ASP but PHP confuses the hell out of me when it comes to things like this.
Would appreciate any advice you could offer. Thank you.
NJ