Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(document).ready(function(){
- $('form[name=loginForm]').submit(function(){
- $.post('scandiaweb/admin/index.php?pos=login',{username: $('[name=username]').val(), password: $('[name=password]').val() },
- function(data){
- // alert(data);
- if(data.success){
- location.href=data.redirect;
- }else{
- $('errorConsol').html(data.message);
- }
- },'json');
- return false;
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement