Posted by Lpenou on 04/12/05 19:38
Hello
I know how tu use array for <select> features in {html_options} like
..php
$email_canomaplist = array(
'yahoo' => '@yahoo.com',
'hotmail' => '@hotmail.com',
'gmail' => '@gmail.com''
);
..tpl
{section name=email loop=$num}
....
Select your Domain:
<select name="email_canomap[{$emailtab[email].mailid}]">
{html_options options=$email_canomaplist
selected=$emailtab[email].canomap}
</select>
....
{/section}
But I do not now how to dispay
"your domain is : @gmail.com"
should be something like
..tpl
your domain is : {$email_canomaplist.$emailtab[email].canomap}
I know the syntax is wrong but I've not found the correct one :-(
Regards
LAurent
Navigation:
[Reply to this message]
|