I'm almost done with the making of a multi page form, with an on submit code. There is just one thing that doesn't work and that is adding up 2 fields.
The form is for ordering a bouquet of flowers at a flowershop. The customer can select a type and so on. They also can select if they would like it to be delivered (at some cost). The total cost (bouquet and delivery) and description need to be send to a different component which handles the payment.
The total cost needs to be added up and that's a problem for me. I tried a bunch of things, but I can't seem to find a solution. I now have this code for sending 2 fields, and it works:
How can I add up 2 fields, using a multi page form with an on submit code? I use v3.2 (validated of course) at http://www.hulshof-bloemsierkunst.nl/bestellen.html
The form is for ordering a bouquet of flowers at a flowershop. The customer can select a type and so on. They also can select if they would like it to be delivered (at some cost). The total cost (bouquet and delivery) and description need to be send to a different component which handles the payment.
The total cost needs to be added up and that's a problem for me. I tried a bunch of things, but I can't seem to find a solution. I now have this code for sending 2 fields, and it works:
<?php
$MyForm->formrow->redirecturl .= 'betalen.html?bedrag='.JRequest::getFloat('radio1', 0, 'POST').'&omschrijving='.JRequest::getString('radio0', 0, 'POST').', '.JRequest::getString('select_0', 0, 'POST');
?>
How can I add up 2 fields, using a multi page form with an on submit code? I use v3.2 (validated of course) at http://www.hulshof-bloemsierkunst.nl/bestellen.html