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 8160235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:10:15+00:00 2026-06-06T18:10:15+00:00

Ok so here is a question. I have two projects in code igniter, say

  • 0

Ok so here is a question.

I have two projects in code igniter, say a and b.
I have a form in ‘a’. When ever a user fills in a form and submits it all the data from the form is put in to an array and then json encoded. here is the code for it

function create(){
$data = array(); //get all the data from the form into an array
$data[] = array('name' => $this->input->post('name'),
    'abbrev' => $this->input->post('abbrev'),
    'long_name' => $this->input->post('long_name'),
    'long_abbrev' => $this->input->post('long_abbrev'),
    'url' => $this->input->post('url'),
    'description' => $this->input->post('description') ); 
    $json_data=json_encode($data);
    $this->output->set_output($json_data)
   }

Now I want to send this data to project ‘b’ where it will store it in the database. here is the code for it.
$college_details = array();
$college_details[‘colleges’]=
json_decode(file_get_contents(‘http://localhost:8888/a/colleges’));

But i don’t know how project ‘b’ will know that there is data to be taken

  • 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-06T18:10:16+00:00Added an answer on June 6, 2026 at 6:10 pm

    I believe what you mean is that you want to store the data across a session so you can access it on the next page. If this is the case, use the PHP session functionality (add session_start() at the top of each file) to store the variable across the pages ($_SESSION['data'] = $data; on page one and echo $_SESSION['data']; on page two).

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

Sidebar

Related Questions

I have a question, here are two classes below: class Base{ public: virtual void
Basic question here - I have many lines of code that look something like:
this is my first question here in stackoverflow. I have two processes, a root
I have Visual Studio 2008 SP1, two C++/CLI projects, lets say proj1 and proj2.
I have two questions here. How can I show the header of the pop
This is two questions in one, so here we go. I have a simple
Here is my question : I have a huge class (HugeClass) and I wanted
Newbee question here - I have this method in the view controller m: -(void)
here's my question: I have a table TRUST(id INT, trustlevel INT) which contains records
here's my question: I have an MVC3 C# application and I need to update

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.