You are here: help about using array « Smarty Templates Posts « IT news, forums, messages
help about using array

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация