'-> DEMO'));
$Form->addJFormComponentArray(array(
new JFormComponentSingleLineText('iban', 'IBAN:', array(
'width' => 'long',
'triggerFunction' => 'UpdateBankdaten();',
'validationOptions' => array(required,
'serverSide' => array(
'url' => 'http://zeltlageranmeldung.de/checkIBAN.php',
'task' => 'checkUsernameAvailability',
),
),
)),
new JFormComponentSingleLineText('bic', 'BIC:', array(
'width' => 'long',
'validationOptions' => array(required),
'initialValue' => '..wird automatisch ausgefüllt',
)),
new JFormComponentSingleLineText('bankname', 'Bankname:', array(
'width' => 'long',
'disabled' => true,
'initialValue' => '..wird automatisch ausgefüllt',
)),
));
function onSubmit($formValues)
{
$iban = $formValues->iban;
$bic = $formValues->bic;
$bankname = $formValues->bankname;
$response = array('successPageHtml' => '5€ wurden von folgendem Konto abgebucht:' . $iban .'-'. $bic .'-'. $bankname . '
');
return $response;
}
// Process any request to the form
$Form->processRequest();
?>