Advertisement
Iyanyan

login tanpa database

Oct 21st, 2019
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?php
  2. session_start();
  3. if(isset($_SESSION['email'])) {
  4. echo '<script>window.location.replace("./index.php");</script>';
  5. } else {
  6. ?>
  7. <center><h1>Form login tanpa database</h1>
  8. <form action="./ceklogin.php" method="post">
  9. <input type="email" name="email" placeholder="Email" alt="email" required="required"/><br/>
  10. <input type="password" name="password" placeholder="Password" alt="password" required="required"/><br/><br/>
  11. <input type="submit" name="submit" value="Submit" alt="submit"/>
  12. </form><br/>
  13. <h4>Ini Halaman Login</h4>
  14. </center>
  15. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement