'gerd', 'password' => 'gerd123' ); $user->login($cred); $uid = $user->getId(); $formDef = array(); $formDef['file01'] = array( 'type' => 'Vfsfile', 'attributes' => array( 'user' => 0 ) ); $formDef['file02'] = array( 'type' => 'Vfsfile', 'attributes' => array( 'user' => 1, 'required' => 'no' ) ); $params = array(); $params['elements'] = $formDef; $form = WBClass::create('patForms', $params); $values = array(); $errors = array(); if (isset($_FILES) && !empty($_FILES)) { $form->setSubmitted(true); if (!$form->validateForm()) { $errors = $form->getValidationErrors(); } else { $values = $form->getValues(); } } ?>

User

User Id: getId(); ?>

Files

' . var_export($values, true) . "\n"; echo '
' . var_export($_FILES, true) . "
\n"; ?>
$def) { $el = $form->getElementByName($name); echo $name . ": "; echo $el->serialize(); echo '
' ."\n"; } echo '
' . var_export($errors, true) . "
\n"; ?>