I know that *passing a variable from view to controller is something that can't be done but I am using symfony and on the purchase form page I need to pass the purchase total to controller to save it in the database.
I have created the form with a formType.php and I don't want to pass the value of the total through the url. Nor would it store it in an input since they can modify it even if it is disabled. And the total price is somewhat variable since discounts can be applied among other things.
I don't know how to approach it or how to do it.
Thank you.