Professional Documents
Culture Documents
php
session_start();
include 'dbh.php';
$uname=$_POST['uname'];
$pass=$_POST['pass'];
}
?><from action="login.php"method="posts">
<label><b>username</b></label>
<input type="text"name="uname" placeholder="username"><br><br>
<label><b>password</b></label>
<input type="text" name="pass" placeholder="password">
<br><br>
<button style="background-color:#6495ed;color:white;"type="submit"><b>Login</b>
</button>
</form>
if (!$row=$result->fetch_assoc()){
header("Location:error.php");
}
else {
<from action="logout.php">
<input style="width:5%;background-color:red;color:white;font-
size:20px;"type="submit" value="logout">
</form>