Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. session_start();
  2. if(!(isset($_SESSION['username'])) && !(isset($_SESSION['password']))){
  3. $_SESSION['username']=trim($_POST['username']);
  4. $_SESSION['password']=$_POST['password'];
  5. }
  6.  
  7. $username = $_SESSION['username'];
  8. $password = $_SESSION['password'];
  9. if($username=="" || $password=="")
  10. {
  11. echo "<script>
  12. alert('You need to fill all fields!');
  13. window.location.assign('reg.php');
  14. </script>";
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement