title: Android App with rest api php codeigniter admin panel
body: <p>want to connect Android App with rest api php codeigniter admin panel I am facing problem to connect with admin panel codeigniter...rest api connect with login submit button </p>
  
  <pre><code>/* PHP */
  &lt;?php include ('header.php');?&gt;
  &lt;div class="container"?&gt;
      &lt;?php echo form_open('logincontroller/admin_login', ['class'=&gt;'form-horizontal']) ?&gt;
      &lt;fieldset&gt;
          &lt;legend&gt;LOGIN&lt;/legend&gt;
          &lt;div class="row"&gt;&lt;!-- user email field --&gt;
              &lt;div class="col-lg-6"&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label for="inputEmail" class="col-lg-2 control-label"&gt;Email&lt;/label&gt;
                      &lt;div class="col-lg-10"&gt;
                          &lt;?php echo form_input(['name'=&gt;'email' , 'class'=&gt;'form-control','placeholder'=&gt;'Email','value'=&gt;set_value('email')]);?&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="col-lg-6"&gt;
                  &lt;?php echo form_error('email');?&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="row"&gt;
              &lt;div class="col-lg-6"&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label for="inputPassword" class="col-lg-2 control-label"&gt;Password&lt;/label&gt;
                      &lt;div class="col-lg-10"&gt;
                          &lt;?php echo form_password(['name'=&gt;'password' , 'class'=&gt;'form-control','placeholder'=&gt;'Password','value'=&gt;set_value('password') ]);?&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="col-lg-6"&gt;
                  &lt;?php echo form_error('password');?&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
              &lt;div class="col-lg-10 col-lg-offset-2"&gt;
                  &lt;?php echo form_reset(['name'=&gt;'reset','value'=&gt;'Reset','class'=&gt;'btn btn-default']);
                  echo form_submit(['name'=&gt;'submit','value'=&gt;'Login' ,'class'=&gt;'btn btn-primary']);?&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/fieldset&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  &lt;?php include ('footer.php');?&gt;
  </code></pre>