January 2, 201412 yr Hi All, I use Codeigniter as the base for my website, and I find it very easy to build using the structure as below: public function index() { $this->load->view('templates/header'); $this->load->view('welcome_message'); $this->load->view('templates/footer'); } You can see that I load the header, the content, and then the footer. The content changes based upon the web link I select (different controllers). I have integrated the Ion_auth files into my installation, and changed the settings to my liking, but I am now stuck because I want a login username and password box in my header, not the full auth.php that Ion_Auth comes with. I have tried recreating the login form and directing it to the login controller via this html: <form action="auth/login" method="POST" id="loginform"> <logintext>Username: <input type="text" name="identity" id="identity"> Password: <input type="password" name = "password" id="password"> <a href="javascript:{}" onclick="document.getElementById('loginform').submit(); return false;"> Go>></a></logintext> </form> The "Go>>" link fires and loads the header and footer with the auth page in the middle, but does not seem to pass login details. Any help would be really appreciated as i'm stumped. Thanks
Create an account or sign in to comment