Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. $scope.formModal = function(){
  2. swal({background:'#ACF1F4',html:"<form method='post' id='loginform'>Username:
  3. <input id='username' name='username' >
  4. <br><br>Password:<input type='password' id='password' name='password'><br> <br></form>",
  5. confirmButtonText: 'Submit',showCancelButton: true},
  6. , function(){
  7. $http.post("login.php",{"username":username,"password":password})
  8. .success(function(data){swal(data)})
  9. }
  10. );
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement