Hi all. How do I do the following: I have a FOREACH statement inmy SMARTY template: {foreach from=$coupons item=c}{$c.code}{/foreach} I need to get the result of the FOREACH statement into s $_SESSION var. I have tried: {php} echo $_SESSION['cc'] ={/php} {foreach from=$coupons item=c}{$c.code}{/foreach} But this does not work. Can anyone help please. Best regards Dereck