bonjour,

j'utilise quickform avec smarty.

j'ai un champ select

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
$selectsection = & $form->addElement('select', 'ID_Section', 'N° section : ') ;
$selectsection->load($result) ; 
$selectsection->loadQuery($dsn,'select * from section ','ID_Section','ID');
comment faire pour avoir la variable $toto comme valeur par defaut affichée ?

dans le style
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
<SELECT name="section" size="1">
     			<OPTION  value="a">a</OPTION>
   			<OPTION selected value=b">b</OPTION>
    			...
</SELECT>
où $toto = "b"


d'avance merci

Philippe