1
           
            
                
     
    
    I'm doing an "admin" script and trying to use smarty. The script works ok the first pass through, it sets up my form and display's everything properly, but then when I put a hidden op and button in the form and press the button, the op is never passed and I can't pass control to another part of the script with the typical if ($op == 'whatever') . 
Has anyone else seen this behavior? It's as though it's ignoring the hidden op:
 $op_submit = new XoopsFormHidden("op", "submit"); 
    $submit_button = new XoopsFormButton("", "", "Set as Default", "submit"); 
 
    $form = new XoopsThemeForm("", "layerform", "setlayers.php"); 
 
    $form->addElement($tray_defaults); 
    $form->addElement($submit_button); 
    $form->addElement($op_submit); 
 
    $form->assign($xoopsTpl); 
    $xoopsTpl->display('db:'.$xoopsOption['template_main']);  
Thanks
Doug P