Bootstrap 结合 PHP ,做简单的登录以及注册界面及功能

<div class="container"> <?php if (isset($error_msg)): ?> <div class="alert alert-danger" role="alert"><?php echo $error_msg; ?></div> <?php endif ?> <?php if (isset($success_msg)): ?> <div class="alert alert-info" role="alert"><?php echo $success_msg; ?></div> <?php endif ?> <form action="<?php echo $_SERVER[\'PHP_SELF\']; ?>" method="post" autocomplete="on"> <div class="form-group"> <label for="administrator">管理员账号(11位手机号码)</label> <input type="number" class="form-control" name="administrator" id="administrator" value="<?php echo isset($_POST[\'administrator\']) ? $_POST[\'administrator\'] : \'\'; ?>"> </div> <div class="form-group"> <label for="password">密码</label> <input type="password" class="form-control" name="password" id="password"> </div> <button class="btn btn-info btn-md btn-block">登录</button> </form> </div>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zzgfpw.html