I currently have an email being set out to an individual. Based on a radio box the individual selects, a different email should be sent (minimal textual changes in the email based on the radio selection).
I read to use the following in the On Submit code - before sending email:
I read to make sure the HTML template was turned off.
I have the following code in my email template:
Upon submission, I do NOT receive the output of $awardTitle. What am I doing wrong?
Thanks,
ClayB
I read to use the following in the On Submit code - before sending email:
<?php
$radio = JRequest::getString('radio0', '', 'post');
switch ($radio0) {
case 'Outstanding Achievement in the Human Services Field for a Program (or Project)':
JRequest::setVar('awardTitle', 'Program Nomination');
break;
case 'Outstanding Achievement in the Human Services Field for a Professional':
JRequest::setVar('awardTitle', 'Individual');
break;
}
?>
I read to make sure the HTML template was turned off.
I have the following code in my email template:
<p><span style="font-family: arial,helvetica,sans-serif;"> <strong>
<?php
echo 'the radio selection is ' .$awardTitle;
?>
</strong></span></p>
Upon submission, I do NOT receive the output of $awardTitle. What am I doing wrong?
Thanks,
ClayB