Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function()
- {
- $('#dash_button').click(function()
- {
- var username = $('#username').val();
- var password = $('#password').val();
- $('#dummy_div').empty();
- $.ajax({
- type:'Post',
- cache: false,
- url: 'ajax_check.php',
- data: {username:username,password:password},
- success:function(html)
- {
- if(html=="ADMIN")
- {
- $.ajax({
- type:'Post',
- cache: false,
- url: 'adminnew.php',
- success:function(html)
- {
- $('#dummy_div').html(html);
- // $('#dummy_div').html(html).hide();
- // $('#dummy_div').show();
- // $('#admin').html(html);
- }
- });
- }
- if(html=="SUPERADMIN")
- {
- $.ajax({
- type:'Post',
- cache: false,
- url: 'superadmin.php',
- success:function(html)
- {
- $('#dummy_div').html(html);
- }
- });
- }
- if(html=="Normal User")
- {
- $.ajax({
- type:'Post',
- cache: false,
- url: 'dash.php',
- success:function(html)
- {
- $('#dummy_div').html(html);
- }
- });
- }
- }
- });
- });
- });
Add Comment
Please, Sign In to add comment