Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.