SHARE
TWEET
Untitled
a guest
Oct 19th, 2016
57
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- angular.module('login', [])
- .controller('LoginController',['$scope','$http', function($scope, $http){
- var isvalid = true;
- if(isvalid){
- $scope.submit = function(login){
- var username = login.username;
- console.log(login);
- $http.post("login_validate.php", login ).then(function(response) {
- if(response.data){
- console.log(login);
- console.log(login.username);
- }else{
- alert(response.data);
- }
- });
- };
- };
- }]);
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.
