Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.4 kB
1
Indexable
Never
<!DOCTYPE html>
<html>

<head>
	<title>Slide Navbar</title>
	<link rel="stylesheet" href="auth.css">

</head>

<body>
	<div class="main">
		<input type="checkbox" id="header-chk" >

		<div class="signup">
			<form method="post" action="authconfig.php">
				<label for="header-chk">Sign up</label>
				<input type="text" name="s_username" placeholder="username" required pattern="^[a-zA-Z_]$" min="3" max="32" title="username is not acceptable">
				<input type="text" name="name" placeholder="name" required pattern="/^[a-z ]+$/i" min="3" max="32" title="name is not acceptable">
				<input type="email" name="email" placeholder="email" required pattern="/^[\w-\.]+@([\w-]+\.)+[\w-]{2,}$/i"  title="email is not acceptable">
				<input type="password" name="s_password" placeholder="password" required min="3" max="32">
				<button type="submit" name="register">Sign up</button>
			</form>
		</div>

		<div class="login">
			<form method="post" action="authconfig.php">
				<label for="header-chk" >Login</label>
				<input type="text" name="l_username" placeholder="username" required pattern="/^[\w]+$/i" min="3" max="32" title="username is not acceptable">
				<input type="password" name="l_password" placeholder="Password" required  min="3" max="32">
				<button type="submit" name="login">Login</button>
			</form>
		</div>
	</div>
</body>

</html>