5
           
            
                
     
    
    I changed names a bit, because there where some doubles.
Now using:
 $options = array("1" => "Testtitle1", "2" => "Testtitle2", "3" => "Testtitle3"); 
 
/* 
$options[] = "Testtitle1"; 
$options[] = "Testtitle2"; 
$options[] = "Testtitle3"; 
*/                                          
print_r($options); 
$formSelect =  new XoopsThemeForm('Select', 'SelectForm', 'index.php', 'POST'); 
$frmSelTitle->addElement(new XoopsFormSelect($caption="Select Title", $name="selectTitle", $value=null, $size=1, $multiple=false)); 
$frmSelTitle->addOptionArray($options); 
$formSelect->display();  
same error:
Array ( [1] => Testtitle1 [2] => Testtitle2 [3] => Testtitle3 ) 
Fatal error: Call to a member function addElement() on a non-object in ... 
 Marco
Edit: not quite the same error, as i see now.
    
        --
Match Dart!Darts Ranking, News, Videos, Forum and more