title: Sign In just refreshes the page php html
body: <p>My signin page just refreshes itself . Its been working for sometime now when I tried to make some few changes the issue stated so I deleted the changes and also tried different computers and browsers but still doing the same thing . So I cant login I tried all possible ways no luck.
  Here is my code .
  </p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
      &lt;title&gt;King Musa Transport System&lt;/title&gt;
      &lt;!-- Tell the browser to be responsive to screen width --&gt;
      &lt;meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"&gt;
      &lt;!-- Bootstrap 3.3.5 --&gt;
      &lt;link rel="stylesheet" href="bootstrap/css/bootstrap.min.css"&gt;
      &lt;!-- Font Awesome --&gt;
      &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"&gt;
      &lt;!-- Ionicons --&gt;
      &lt;link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"&gt;
      &lt;!-- Theme style --&gt;
      &lt;link rel="stylesheet" href="dist/css/AdminLTE.min.css"&gt;
      &lt;!-- iCheck --&gt;
      &lt;link rel="stylesheet" href="plugins/iCheck/square/blue.css"&gt;
  
      &lt;!-- jQuery 2.1.4 --&gt;
      &lt;script src="plugins/jQuery/jQuery-2.1.4.min.js"&gt;&lt;/script&gt;
      &lt;!-- Bootstrap 3.3.5 --&gt;
       &lt;!-- jQuery --&gt;
      &lt;script src="bootstrap/jquery/jquery.min.js"&gt;&lt;/script&gt;
  
      &lt;script src="bootstrap/js/bootstrap.min.js"&gt;&lt;/script&gt;
      &lt;!-- iCheck --&gt;
  
      &lt;!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --&gt;
      &lt;!-- WARNING: Respond.js doesn't work if you view the page via file:// --&gt;
      &lt;!--[if lt IE 9]&gt;
          &lt;script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"&gt;&lt;/script&gt;
          &lt;script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"&gt;&lt;/script&gt;
      &lt;![endif]--&gt;
    &lt;/head&gt;
    &lt;body class="hold-transition login-page"&gt;
      &lt;div class="login-box"&gt;
        &lt;div class="login-logo"&gt;
          &lt;a href="index.php"&gt;&lt;b&gt;Powered by King Musa Systems.
        &lt;/div&gt;&lt;!-- /.login-logo --&gt;
        &lt;div class="login-box-body"&gt;
          &lt;p class="login-box-msg"&gt;Sign in to start your session&lt;/p&gt;
          &lt;form class="form-horizontal"   id="myform" method="post"&gt;
            &lt;div class="form-group has-feedback"&gt;
              &lt;input type="text" class="form-control" id ="username" name="username"&gt;
              &lt;span class="glyphicon glyphicon-envelope form-control-feedback"&gt;&lt;/span&gt;
            &lt;/div&gt;
            &lt;div class="form-group has-feedback"&gt;
              &lt;input type="password" id ="password" name = "password" class="form-control"&gt;
            &lt;/div&gt;
            &lt;div class="row"&gt;
              &lt;div class="col-xs-8"&gt;
                &lt;div class="checkbox icheck"&gt;
                  &lt;label&gt;
                  &lt;/label&gt;
                &lt;/div&gt;
              &lt;/div&gt;&lt;!-- /.col --&gt;
              &lt;div class="col-xs-4"&gt;
                &lt;button type="submit" name ="submit" id ="submit_login" class="btn btn-primary btn-block btn-flat"&gt;Sign In&lt;/button&gt;
              &lt;/div&gt;&lt;!-- /.col --&gt;
            &lt;/div&gt;
          &lt;/form&gt;
  
          &lt;div class="social-auth-links text-center"&gt;
          &lt;/div&gt;&lt;!-- /.social-auth-links --&gt;
           &lt;span id="showerrors"&gt;&lt;/span&gt;
  &lt;div class ="showerrors"&gt;&lt;/div&gt;
          &lt;a href="#"&gt;I forgot my password&lt;/a&gt;&lt;br&gt;
          &lt;a href="register.html" class="text-center"&gt;Register a new membership&lt;/a&gt;
  
        &lt;/div&gt;&lt;!-- /.login-box-body --&gt;
      &lt;/div&gt;&lt;!-- /.login-box --&gt;
  
  
      &lt;script&gt;
      $(document).ready(function(){
      $("#showerrors").css('display', 'none', 'important');
       $("#submit_login").click(function(){   
            username=$("#username").val();
            password=$("#password").val();
            if(username==""){
                      $(".showerrors").html("&lt;p style='color:red'&gt;please type  username&lt;/p&gt;");
  
                       }
           else if(password==""){
                       $(".showerrors").html("&lt;p style='color:red'&gt;please type  password&lt;/p&gt;");
  
                       }
            $.ajax({
             type: "POST",
             url: "dologin.php",
              data: "username="+username+"&amp;password="+password,
             success: function(datasender){    
              //debugger;
              if(datasender)    {
              //$(".showerrors").html(datasender.message);
  //alert(datasender.message);
               window.location="index.php";
              }
              else {
  
              }
             },
             beforeSend:function()
             { 
              $("#showerrors").css('display', 'inline', 'important');
              $("#showerrors").html("&lt;p style='color:green'&gt;Loading...")
             }
            });
          return false;
      });
  });
  
  //Read more: http://www.ondeweb.in/ajax-login-form-with-jquery-and-php/#ixzz3d9UpBgG7
  
          &lt;/script&gt;
  
  
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>