There is a form
<form action="" method="post" enctype="multipart/form-data"> <input type="hidden" name="event" value="signup"/> <div class="form-group"> <label class="control-label" for="input-email"><?=_('Логин')?></label> <input name="uname" value="" placeholder="<?=_('Логин')?>" id="input-email" class="form-control" type="text"> </div> <div class="form-group"> <label class="control-label" for="input-password"><?=_('Пароль')?></label> <input name="pwd" value="" placeholder="<?=_('Пароль')?>" id="input-password" class="form-control" type="password"> </div> <div class="form-group"> <input name="remember" type="checkbox" value="1"/> <?=_('Запомнить')?> </div>
The form handler is working, but there is a problem that validation does not work and gives the error Notice: Undefined index: err
<?if($_GET['err']=='1'):?><div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> <?=_('Вы ввели неправильный логин или пароль')?> </div><?endif?>
if (isset($_GET['err']))
- Suvitruf ♦err
form is not sent to you, and secondly, yourpost
form sends a request. - Suvitruf ♦