php bootstrap实现简单登录
作者:LAVERTON 时间:2024-04-10 10:42:07
本文实例为大家分享了php bootstrap实现简单登录的方法,供大家参考,具体内容如下
所有文件
记住是获取name键值对 from 里面 action就是你的动作
signin.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">
<title>Signin Template for Bootstrap</title>
<!-- Bootstrap core CSS -->
<link href="bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="signin.css" rel="stylesheet">
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<form class="form-signin" method = "get" action = "form-signin.php">
<h2 class="form-signin-heading">Please sign in</h2>
<label for="inputEmail" class="sr-only">Email address</label>
<input type="email" id="inputEmail" name ="inputEmail"class="form-control" placeholder="Email address" required autofocus>
<label for="inputPassword" class="sr-only">Password</label>
<input type="password" id="inputPassword"name ="inputPassword" class="form-control" placeholder="Password" required>
<div class="checkbox">
<label>
<input type="checkbox" value="remember-me" name="remember me"> Remember me
</label>
</div>
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
</form>
</div> <!-- /container -->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>
sign.css
body {
padding-top: 40px;
padding-bottom: 40px;
background-color: #eee;
}
.form-signin {
max-width: 330px;
padding: 15px;
margin: 0 auto;
}
.form-signin .form-signin-heading,
.form-signin .checkbox {
margin-bottom: 10px;
}
.form-signin .checkbox {
font-weight: normal;
}
.form-signin .form-control {
position: relative;
height: auto;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 10px;
font-size: 16px;
}
.form-signin .form-control:focus {
z-index: 2;
}
.form-signin input[type="email"] {
margin-bottom: -1px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
margin-bottom: 10px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
form-signin.php
<pre>
<?php print_r($_GET);?>
</pre>
如果大家还想深入学习,可以点击这里进行学习,再为大家附两个精彩的专题:Bootstrap学习教程Bootstrap实战教程
标签:php,bootstrap,登录
0
投稿
猜你喜欢
PHP概率计算函数汇总
2023-11-19 08:06:19
MySql 5.6.35 winx64 安装详细教程
2024-01-24 13:36:13
asp如何建立MYSQL数据库的连接?
2009-11-26 20:30:00
python 窃取摄像头照片的实现示例
2021-12-27 19:16:11
python实现zencart产品数据导入到magento(python导入数据)
2022-06-04 12:34:32
python+tkinter+mysql做简单数据库查询界面
2024-01-19 21:13:20
python正则表达式用法超详细讲解大全
2023-09-13 03:27:07
python pip安装的包目录(site-packages目录的位置)
2022-08-23 13:20:38
利用Python判断你的密码难度等级
2021-04-10 20:46:08
python3.6 如何将list存入txt后再读出list的方法
2022-03-03 07:30:26
Python的线程之线程同步
2021-02-05 23:23:32
Burpsuite入门及使用详细教程
2023-08-15 19:07:07
css hack简易的“独享”与“交集”
2008-08-31 20:17:00
W3C web标准概念入门
2008-05-25 15:06:00
PHP实现无限极分类的两种方式示例【递归和引用方式】
2023-11-15 18:26:33
Opera下的max-width BUG
2010-06-26 12:51:00
ASP.NET中的几种弹出框提示基本实现方法
2023-07-13 00:23:50
一篇文章带你了解python标准库--sys模块
2022-04-25 10:21:37
Python基于execjs运行js过程解析
2021-08-10 22:56:47
asp 判断是否为搜索引擎蜘蛛的代码
2011-03-10 11:03:00