$form_text .= $ajax_uploader->Show(); $form_text .= $acymailing->Show(); $form_text .= $jnews->Show(); $form_text .= $fcaptcha->Show(); $form_text .= $antispam->Show(); // Usually we want the submit button at the bottom $form_text .= $submitter->Show(); // Build $TopText and $BottomText switch (0) { case $submitter->IsValid(): break; case $fieldsBuilder->IsValid(): break; case $ajax_uploader->IsValid(): break; case $fcaptcha->IsValid(): break; case $antispam->IsValid(): break; // Spam check passed or disabled // Spam check passed or disabled case $jMessenger->Process(): break; case $DatabaseDispatcher->Process(): break; case $newsletter->Process(): break; case $acymailing->Process(): break; case $jnews->Process(): break;
$form_text = ""; $form_text .= $fieldsBuilder->Show(); $form_text .= $ajax_uploader->Show(); $form_text .= $fcaptcha->Show(); $form_text .= $antispam->Show(); // Usually we want the submit button at the bottom $form_text .= $submitter->Show(); // Build $TopText and $BottomText switch(0) { case $submitter->IsValid(): break; case $fieldsBuilder->IsValid(): break; case $ajax_uploader->IsValid(): break; case $uploader->IsValid(): break; case $fcaptcha->IsValid(): break; case $antispam->IsValid(): break; // Spam check passed or disabled case $jMessenger->Process(): break; case $adminMailer->Process(): break; case $submitterMailer->Process(): break; default: // None of the previous checks are failed // Avoid to show the Form and the button again $form_text = ""; // Reset captcha solution in the session after read it, avoiding that a f****d lamer // abuse of the *same session* without request the captcha again, to send tons of email $fsession->PurgeValue("captcha_answer"); HeaderRedirect($params); }