Первый раз пишу форму входа. Все получилось но система не хочет авторизовать. Помогите.
Code
<?if($USER_LOGGED_IN$)?>
<?else?>
<div class="login">
<?if($ERROR$)?><td colspan="2" style="color:red;text-align:center;">$ERROR$</td><?endif?>
<h5>$UID_ICON$ Авторизация</h5>
<br><input type="text" name="login" class="input" placeholder="E-mail">
<br><input type="password" name="login" class="input" placeholder="Пароль">
<br><input type="submit" name="login" class="loginsubmit" value="Войти"> <a href="/index/3" class="loginsubmit">Регистрация</a>
<input id="rem$PAGE_ID$" type="checkbox" name="rem" value="1" checked="checked"/><label for="rem$PAGE_ID$">запомнить</label> <br /><input id="hid$PAGE_ID$" type="checkbox" name="hidden" value="1" /><?if($PAGE_ID$="login" && $HIDDEN_ALLOWED$)?> <label for="hid$PAGE_ID$">скрытый</label><?endif?>
</div>
<?endif?>