[Templates] hash key

Tim Keefer tkeefer@sunflowerbroadband.com
Tue, 14 Feb 2006 14:29:08 -0600


------=_Part_10490_3747194.1139948948382
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I'm having trouble accessing the hash value when I'm combining items to
create the hash key. I'm hoping there's a better way to do this.

[% FOREACH num IN [ 1, 2, 3, 4, 5 ] %]
   [% box_key =3D ( 'box_' _ num ) %]
   [% name  =3D hash.$box_key.name %]
   [% phone =3D hash.$box_key.phone %]
[% END %]

------=_Part_10490_3747194.1139948948382
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I'm having trouble accessing the hash value when I'm combining items to
create the hash key. I'm hoping there's a better way to do this. <br><br>[%=
 FOREACH num IN [ 1, 2, 3, 4, 5 ] %]<br>&nbsp;&nbsp; [% box_key =3D ( 'box_=
' _ num ) %]
<br>&nbsp;&nbsp; [% name&nbsp; =3D hash.$box_key.name %]<br>&nbsp;&nbsp; [%=
 phone =3D hash.$box_key.phone %]<br>[% END %]

------=_Part_10490_3747194.1139948948382--