Re: [SMARTY] html_option wish

From: Date: Mon, 17 Mar 2003 13:27:04 +0000
Subject: Re: [SMARTY] html_option wish
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8691@lists.php.net to get a copy of this message
Le lun 17/03/2003 à 14:03, Jason Sweat a écrit : > I always place defaults in the template itself, i.e. > > <select name=constructeur_id> > <option label="" value="0"></option> > {html_options ...} > </select> For this case: {html_options options=$tmpConstructeurs selected=$smarty.post.constructeur_id} I presume <option label="" value="0"{if !$smarty.post.constructeur_id} selected{/if}></option> -- Jean-Michel Juzan jmjuzan@ecreasol.ch Direction Informations & Technologies eCreaSol - NetWork Creative Solutions SARL - http://www.ecreasol.ch/ PGP public keys server : http://www.keyserver.net

Attachment: [application/pgp-signature] signature.asc
« previous php.smarty.general (#8691) next »