Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
mini-cms/index.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
53 lines (51 sloc)
1.38 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
session_start(); | |
?> | |
<html> | |
<head> | |
<title>Login</title> | |
<link rel="stylesheet" href="css/main.css" type="text/css"> | |
</head> | |
<body> | |
<div class="form-body"> | |
<div class="form-container"> | |
<form action="includes/login.php" method="POST"> | |
<div class="login-form"> | |
<div> | |
<input type="text" name="uid" placeholder="Username"> | |
</div> | |
<div> | |
<input type="password" name="pwd" placeholder="Password"> | |
</div> | |
</div> | |
<button type="submit">Log In</button> | |
</form> | |
<?php | |
if (isset($_SESSION['id'])) { | |
$_SESSION['id']; | |
} | |
else { | |
echo ""; | |
} | |
?> | |
<div class="signup-form"> | |
<form action="includes/signup.php" method="POST"> | |
<div> | |
<input type="text" name="first" placeholder="First Name"> | |
</div> | |
<div> | |
<input type="text" name="last" placeholder="Last Name"> | |
</div> | |
<div> | |
<input type="text" name="uid" placeholder="Username"> | |
</div> | |
<div> | |
<input type="password" name="pwd" placeholder="Password"> | |
</div> | |
<button type="submit">Sign Up</button> | |
</form> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |