Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.formModal = function(){
- swal({background:'#ACF1F4',html:"<form method='post' id='loginform'>Username:
- <input id='username' name='username' >
- <br><br>Password:<input type='password' id='password' name='password'><br> <br></form>",
- confirmButtonText: 'Submit',showCancelButton: true},
- , function(){
- $http.post("login.php",{"username":username,"password":password})
- .success(function(data){swal(data)})
- }
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement