mam taki formularz:
function registerForm($rewrite, $settings) { if($settings['register']) { $this->register($settings['register'],$settings['req_code'],$settings['title']); <label>Login <span class="required">*</span></label> <input type="text" name="login" maxlength="16" value="'.(isset($_POST['login'])?htmlspecialchars($_POST['login']):'').'" /> <div> <label>Hasło <span class="required">*</span></label> <label>E-Mail <span class="required">*</span></label> <input type="text" name="email" value="'.(isset($_POST['email'])?htmlspecialchars($_POST['email']):'').'" /> <label><img class="chapta" src="'.$kernel->host().'/admin/lib/captcha/image.php" alt="Captcha"></label><br/> <input type="text" name="question"> <label>Akceptuję <a href="'.$rewrite->rules.'">regulamin</a>.<span class="required">*</span></label> <input name="rules" type="checkbox" value="1"><br/><br/> Możesz także uzupełnić dodatkowe pola <br/> <label>Data urodzenia DD-MM-RRRR </label> <input type="text" name="dataurodzin" maxlength="16" value="'.(isset($_POST['dataurodzin'])?htmlspecialchars($_POST['dataurodzin']):'').'" /> <br/> Mężczyzna:<input type="radio" value="mężczyzna" name="plec"'.(isset($_POST['plec'])?htmlspecialchars($_POST['plec']):'').'"> Kobieta:<input type="radio" value="kobieta" name="plec"'.(isset($_POST['plec'])?htmlspecialchars($_POST['plec']):'').'"> <br/><br/> <input type="submit" name="submit" value="Zarejestruj się!" /> </form>'; } else $this->msg('Rejestracja nowych użytkowników jest wyłączona.',1); } else $this->active(); }
Jak najprościej można tu dodać pole do weryfikacji hasła z jakimś komunikatem jeśli hasła się nie zgadzają ?
Z góry dziękuję za wszystkie wskazówki.