介绍:利用PHP、Mysql数据库、html、css、javascript、bootstrap框架,开发一个简单网站.效率不高,主要作练习用.
效果图:
引用:css效果用的是:
https://blog.csdn.net/Wrj6811/article/details/105800712?utm_medium=distribute.wap_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.wap_blog_relevant_no_pic&depth_1-utm_source=distribute.wap_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.wap_blog_relevant_no_pic
引用:验证码用的是:
https://www.jianshu.com/p/7473f5bdd9c0
loginto.php文件代码:
<!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Bootstrap --> <link href="PNG/loginto.css" rel="stylesheet" media="screen"> <link href="bootstrap-3.0.0/dist/css/bootstrap.min.css" rel="stylesheet" media="screen"> <meta charset="utf-8"> <meta name="description" content="Example of Fluid Layout with Bootstrap version 2.0 from w3cschool.cc"> <meta name="author" content=""> <!-- Le styles --> <link href="bootstrap-3.0.0/dist/bootstrap/twitter-bootstrap-v2/docs/assets/css/bootstrap.css" rel="stylesheet"> <link href="bootstrap-3.0.0/dist/bootstrap/twitter-bootstrap-v2/docs/assets/css/example-fluid-layout.css" rel="stylesheet"> <link rel="stylesheet" href="http://at.alicdn.com/t/font_1786038_m62pqneyrzf.css"> <title>龙星通信-登录</title> <style src="into/custom.css"></style> </head> <body > <div id="fb-root"></div> <script type="text/javascript"> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <div class="form-wrapper"> <div class="header"> 登录 </div> <form method="post" action="https://www.test.com/NB/self/login.php" > <div class="input-wrapper"> <div class="border-wrapper"> <input type="text" name="account" placeholder="帐户" class="border-item" autocomplete="off"> </div> <div class="border-wrapper"> <input type="password" name="password" placeholder="密码" class="border-item" autocomplete="off"> </div> <div class="border-wrapper"> <input type="password" name="verification" placeholder="验证码" class="border-item" autocomplete="off"> </div> <p align = "center"><img src="https://www.test.com/NB/self/into/idcode.php" width="100px" height="50px"alt=""></p> </div> <div class="action"> <input class="submit" name="submit" type="submit" value="登录" autocomplete="off"/> </div> <div class="action"> <a href="https://www.test.com/NB/self/reginto.php" autocomplete="off" style="color: darkslateblue;">注册</a> </div> </form> <?php if(isset($_GET["q"])){ echo ' <div class="action"> <a href="https://www.test.com/NB/self/loginreget.php" autocomplete="off" style="color: darkslateblue;">重置密码</a> </div> <div> <div class="alert alert-danger alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true"> × </button> '.$_GET["q"].' </div> </div> '; } ?> <script type="text/javascript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script> <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script> <script src="bootstrap-3.0.0/dist/js/bootstrap.min.js"></script> </body> </html>reginto.php文件代码:
<!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Bootstrap --> <link href="PNG/loginto.css" rel="stylesheet" media="screen"> <link href="bootstrap-3.0.0/dist/css/bootstrap.min.css" rel="stylesheet" media="screen"> <meta charset="utf-8"> <meta name="description" content="Example of Fluid Layout with Bootstrap version 2.0 from w3cschool.cc"> <meta name="author" content=""> <!-- Le styles --> <link href="bootstrap-3.0.0/dist/bootstrap/twitter-bootstrap-v2/docs/assets/css/bootstrap.css" rel="stylesheet"> <link href="bootstrap-3.0.0/dist/bootstrap/twitter-bootstrap-v2/docs/assets/css/example-fluid-layout.css" rel="stylesheet"> <link rel="stylesheet" href="http://at.alicdn.com/t/font_1786038_m62pqneyrzf.css"> <title>龙星通信-注册</title> <style src="into/custom.css"></style> </head> <body > <div id="fb-root"></div> <script type="text/javascript"> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <div class="form-wrapper"> <div class="header"> 注册 </div> <form method="post" action="https://www.test.com/NB/self/reg.php" > <div class="input-wrapper"> <div class="border-wrapper"> <input type="text" name="username" placeholder="用户名" class="border-item" autocomplete="off"> </div> <div class="border-wrapper"> <input type="text" name="account" placeholder="帐户" class="border-item" autocomplete="off"> </div> <div class="border-wrapper"> <input type="password" name="password" placeholder="密码" class="border-item" autocomplete="off"> </div> <div class="border-wrapper"> <input type="password" name="repassword" placeholder="再次确认密码" class="border-item" autocomplete="off"> </div> <div class="border-wrapper"> <input type="password" name="verification" placeholder="验证码" class="border-item" autocomplete="off"> </div> <p align = "center"><img src="https://www.test.com/NB/self/into/idcode.php" width="120px" height="60px"alt=""></p> </div> <div class="action"> <input bu class="submit" name="submit" type="submit" value="注册" /> </div> <div> <div class="alert alert-danger alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true"> × </button> <?php if(isset($_GET["q"])){ echo $_GET["q"]; } ?> </div> </div> </form> <script type="text/javascript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script> <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script> <script src="bootstrap-3.0.0/dist/js/bootstrap.min.js"></script> <!-- <div class="icon-wrapper"></div> --> </div> </body> </html>第一章:初遇
第二章:相识
第三章:相知