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

  • Home
  • SEARCH
  • 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 8014567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:58:32+00:00 2026-06-04T19:58:32+00:00

I am using codeigniter to build a web app. I am having some problems

  • 0

I am using codeigniter to build a web app. I am having some problems with the following scenario.

  1. The user clicks on submit button on ‘home’
  2. He is redirected to home/ok where I retrieve his info
  3. from home/ok he is redirected back to home#final

But the thing is, final is hidden by default and it is not displaying. I have a JavaScript function that toggles final and it is displayed.

Is there anyway I can make the ok function redirect to the JavaScript function? I cannot add it on body onload since I don’t want the success message to appear beforehand.

  • 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-04T19:58:34+00:00Added an answer on June 4, 2026 at 7:58 pm

    How about doing something like:

    <? $display = ($_SERVER['HTTP_REFERER'] == base_url() . 'home/ok')? 'block': 'none'; ?>
    <div id="final" style="<?=$display?>;">
     OK
    </div>
    

    To set the default display style based on which way the page is displayed.

    You could also look in to Flash data in the Session class, see. http://codeigniter.com/user_guide/libraries/sessions.html which I think is used for what I think you want to achieve

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

Sidebar

Related Questions

I'm using CodeIgniter to build my first web app. For demo purposes, users can
I'm using Codeigniter to build a form. The submit button is: echo form_submit('submit', 'Buy
I'm using CodeIgniter Framework in order to build a web application as follows. My
I'm using CodeIgniter (a PHP framework) to build an app, and I have an
I'm having a website build on CodeIgniter 2 and I'm using the CodeIgniter PayPal
I'm trying to build a multi-app site using CodeIgniter. The individual applications need to
I am using Codeigniter to build my project. Here i have some doubts or
I'm having some trouble setting a user variable in MySQL and using it in
Kind sirs, I'm using Codeigniter to build a blog. I might need a way
I'm using Codeigniter and the Active Record class to build a simple API in

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.