用php写出一个简单的页面与数据库交换的登录和注册功能
这里说一下,我用的phpstorm来进行编程,数据库运用mysql
登录页面代码
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<title></title>
<meta name="keywords" content="" />
<meta name="description" content="" />
</head>
<body>
<div id="main">
<div class="title"><h2>欢迎使用,请登录</h2></div>
<br><br>
<form action="login2.php" method="post" onsubmit="return enter()">
<label><input class="text" type="text" placeholder="用户名" name="username" /></label>
<br><br>
<label><input class="text" type="password" placeholder="密码" name="password" /></label>
<br><br>
<label><input class="submit" type="submit" name="submit" value=