I am using a multipage form.
On the last multipage I have some custom HTML that stores the following new field with data in the form:
This code works fine on the actual screen but when I put the following in the e-mail template no values appear:
All that appears in the e-mail from the above code is
On the last multipage I have some custom HTML that stores the following new field with data in the form:
$prices=array(100,180,225,320,375);
$form->data['cost']=$prices[$noofdays-1];
$form->data['noofdays']=$noofdays;
This code works fine on the actual screen but when I put the following in the e-mail template no values appear:
<?php if ($noofdays==1) { ?>
1 day comes to: ${cost}.
<?php } else { ?>
{noofdays} days comes to: ${cost}
<?php }?>
All that appears in the e-mail from the above code is
days comes to: $