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
Post a Comment