-- -- Table structure for table `user` --
<form method="post" action="signin_form.php" enctype="multipart/form-data"> <table> <tr> <td><input type="email" name="email" placeholder="[email protected]" class="form-1" title="Enter your email" required /></td> </tr> <tr> </tr> <tr> </tr> <tr> </tr> <tr> </tr> <tr> <td colspan="2"> <input type="submit" name="submit" value="Log in" class="btn-sign-in" title="Log in" /> <input type="reset" name="cancel" value="Cancel" class="btn-sign-up" title="Cancel" /> </td> </tr> </table> </form>
<?php ?>
<?php include('includes/database.php'); { $email=$_POST['email']; $password=$_POST['password']; { if ($count == 0) { echo "<script>alert('Please check your username and password!'); window.location='signin.php'</script>"; } else if ($count > 0) { $_SESSION['id'] = $row['user_id']; } } } ?>