Login Retreive lost passwordRegister
Search

Forum Index / General / bug in setvalue and selectField ?

[ This topic is solved ]

  kreatik 05 April 10 / 02:36  
Changed at 05 April 10 / 02:37
<?php
$a 
= array(
    
'all'=>'Tous...',
    
0=>'abc',
    
1=>'def',
    
2=>'ghi'
);

$myForm->setValue();
$myForm->selectField("select"'test',$a,FH_NOT_EMPTYtruefalse1);
?>



<select size="1" id="test" name="test">
    <option selected="selected" value="all">Tous...</option>
    <option selected="selected" value="0">abc</option>
    <option value="1">def</option>
    <option value="2">ghi</option>
</select>


The html return two options with selected="selected". Why ?

  Johan Wiegel (Admin) 05 April 10 / 08:05  
found a bug and fixed it

  Top


powered by PHP-GLOBE   © 2004 - 2012 FormHandler. All rights reserved.   -   Open source license