SHARE
TWEET

Untitled

a guest Oct 19th, 2016 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. angular.module('login', [])
  2.     .controller('LoginController',['$scope','$http', function($scope, $http){
  3.         var isvalid = true;
  4.         if(isvalid){
  5.         $scope.submit = function(login){
  6.             var username = login.username;
  7.             console.log(login);
  8.        $http.post("login_validate.php", login ).then(function(response) {
  9.         if(response.data){
  10.             console.log(login);
  11.             console.log(login.username);
  12.            
  13.         }else{
  14.             alert(response.data);
  15.         }      
  16.        });
  17.            
  18.         };
  19.        
  20.         };
  21.     }]);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top