help about using array

From: Date: Tue, 12 Apr 2005 16:38:55 +0000
Subject: help about using array
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12473@lists.php.net to get a copy of this message
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

« previous php.smarty.general (#12473) next »