示例#1
0
文件: index.php 项目: reshadf/Library
    // als file bestaat haal op anders error
    if (file_exists($file)) {
        require $file;
    } else {
        error_log('Class "' . $className . '" could not be autoloaded');
        throw new Exception('Class "' . $className . '" could not be autoloaded from: ' . $file);
    }
}
/**********************************************************************************************************************************************************************************************************************/
if (isset($_COOKIE['Login'])) {
    echo 'u bent al ingelogd';
} else {
    // create a new FormHandler object
    $form = new FormHandler();
    // some fields.. (see manual for examples)
    $form->textField("Naam", "name", FH_STRING, 20, 40);
    $form->passField("Wachtwoord", "pass", FH_PASSWORD);
    //$autologin = $form->checkbox("Remember me:", "remember", 1);
    $form->textField("Naam", "name", FH_STRING, 20, 40);
    $form->passField("Wachtwoord", "pass", FH_PASSWORD);
    // button for submitting
    $form->submitButton();
    // set the 'commit-after-form' function
    $form->onCorrect('doRun');
    // display the form
    $form->flush();
}
// the 'commit-after-form' function
function doRun()
{
    $msg = '';