codeigniter login controllers without database -


i want create demo account. how can create easy login controllers not require database?

this view.

  <div class="col-lg-12">      <label class="control-label">            username / email address       </label>       </div>       <div class="col-lg-12">           <input class="form-control" type="text" name="email_address" autofocus />       </div>       <div class="col-lg-12">           <label class="control-label">                 password:           </label>        </div>        <div class="col-lg-12">            <input class="form-control" type="password" name="password" />        </div>        <div class="col-lg-12">            <input type="submit" name="button" value="" class="btn-submit-student"/>    </div> 

use ( understood question )

<?php if(isset($_post['button'])) {     $user = $_post['email_address'];     $pw = $_post['password'];      if($user =='my_username' , $pw=='my_password')     {         //code if user name , password matched         echo 'sucess';     }     else     {         //username , password failed         echo 'failed';      } } 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -