molily: Werte prüfen/ neue Seite

Beitrag lesen

Hallo,

Ein ganz normaler Submit-button und dann

onsubmit="return checkAndRedirect()"

function checkAndRedirect () {
   if (chk_form()) {
     next_page();
   } else {
     return false;
   }
}

function chk_form () {
   if ( ... Fehler .. ) {
      return false;
   }
   return true;
}

Mathias