Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8474683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:41:36+00:00 2026-06-10T17:41:36+00:00

I have a blog application that I want a login form in a sidebar.

  • 0

I have a blog application that I want a login form in a sidebar. I use Ion Auth library. How do I do that?

I have this in my sidebar view:

<?php echo form_open("blog/login");?>

  <p>
    <input type="text" name="identity">Username:</>         
  </p>      
  <p>
    <input type="text" name="password">Password:</>      
  </p>      
  <p>
   <label for="remember">Remember Me:</label>
      <?php echo form_checkbox('remember', '1', FALSE, 'id="remember"');?>
 </p>
  <p><?php echo form_submit('submit', 'Login');?></p>      
<?php echo form_close();?>

But when I click “Login” it goes to different page. I want login function in my blog controller to work behind and staying in home page.

Thanks in advance guys!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:41:37+00:00Added an answer on June 10, 2026 at 5:41 pm

    It’s difficult to answer without looking at the code, but I’m guessing that you could pass a hidden field in the form with the current URL.

    Then, in the blog/login method, after you login the user, you can redirect to the URL received in the hidden field, instead of redirecting to base_url().

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a blog application, and I want to have a sidebar that
I'm trying to do blog application and I want main page to have this
I have desktop application and I want that all new data in this application
I have a really simple blog application and I want to add a really
I have developed a blog application of sorts that I am trying to allow
I have an application that has two buttons, and I want to detect when
I have a pre-baked sqlite database that I want to use in my Android
i'm having this problem: Suppose you've a blog application and you want to display
I have an ASP.NET MVC 4 Application that I want to implement Unit of
I want to make a little application. That will have register, save, update, delete,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.