1.今天php大作业汇总,目前完成了登录,注册,顶部菜单栏设计
部分代码:
<?php
if(!empty($_GET)) {
if(isset($_GET["message"]))
{
$message = $_GET["message"];
echo "<script>alert('$message');</script>";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>登录页</title>
<meta name="description" content="particles.js is a lightweight JavaScript library for creating particles.">
<meta name="author" content="Vincent Garreau" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" media="screen" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/reset.css"/>
<style>
.login-center input
{
border:#ccc 1px solid;
}
</style>
</head>
<body>
<div id="particles-js">
<div class="login">
<div class="login-top">
登录
</div>
<form action="login.php" method="post" id="myform">
<div class="login-center clearfix">
<div class="login-center-img"><img src="img/name.png"/></div>
<div class="login-center-input">
<input type="text" name="name" value="" placeholder="请输入您的用户名" onfocus="this.placeholder=''" onblur="this.placeholder='请输入您的用户名'"/>
<div class="login-center-input-text">用户名</div>
</div>
</div>
<div class="login-center clearfix">
<div class="login-center-img"><img src="img/password.png"/></div>
<div class="login-center-input">
<input type="password" name="password"value="" placeholder="请输入您的密码" onfocus="this.placeholder=''" onblur="this.placeholder='请输入您的密码'"/>
<div class="login-center-input-text">密码</div>
<div class="login-showright" >
<a href="forgetPassword.php">忘记密码?</a>
</div>
</div>
</div>
<div class="login-center clearfix">
<div class="login-left-img"><img src="image_captcha.php" onclick="this.src='image_captcha.php?'+new Date().getTime();" width="200" height="50"></div><!--引用imafe_captcah文件,并设置点击事件点击图片更新-->
<div class="login-left-input">
<input type="text" name="captcha"value="" placeholder="请输入验证码" onfocus