<?php if(!$_SESSION['form_admin']):?>
<div class="login-form">
    <form class="form-signin"  method="post" action="" id="admin_login">
        <div class="input-group">
            <span class="input-group-addon">name</span>
            <input type="text" class="form-control" placeholder="Name" autofocus="" name="name">
        </div>

        <div class="input-group">
            <input type="password" class="form-control" placeholder="Пароль" name="password" id="passwd">
            <span class="input-group-addon">Пароль</span>
        </div>
        <div class="input-group">
            <button class="btn btn-lg btn-primary" type="submit">Войти</button>
        </div>
    </form>
</div>
<?php else:?>
    <a href="/?p=admin">Вы успешно прошли регистрацию</a>
<?php endif ?>