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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:14:59+00:00 2026-05-14T23:14:59+00:00

When sending data from a form to a second page, the value of the

  • 0

When sending data from a form to a second page, the value of the session is always with the name “Array” insteed of the expected number.

The data should get displayed in a table, but insteed of example 1, 2, 3 , 4 i get : Array, Array, Array.
(A 2-Dimensional Table is used)

Is the following code below a proper way to “call” upon the stored values on the 2nd page from the array ?

$test1 = $_SESSION["table"][0];
$test2 = $_SESSION["table"][1];
$test3 = $_SESSION["table"][2];
$test4 = $_SESSION["table"][3];
$test5 = $_SESSION["table"][4];

What exactly is this, and how can i fix this?
Is it some sort of override that needs to happen?

Best Regards.

  • 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-05-14T23:14:59+00:00Added an answer on May 14, 2026 at 11:14 pm

    You don’t need any sort of override. The script is printing “Array” rather than a value, because you’re trying to print to the screen a whole array, rather than a value within an array for example:

    $some_array = array('0','1','2','3');
    
    echo $some_array; //this will print out "Array"
    
    echo $some_array[0]; //this will print "0"
    
    print_r($some_array); //this will list all values within the array. Try it out!
    

    print_r() is not useful for production code, because its ugly; however, for testing purposes it can keep you from pulling your hair out over nested arrays.

    It’s perfectly fine to access elements in your array by index: $some_array[2]

    if you want it in a table you might do something like this:

    <table>
        <tr>
        for($i = 0 ; $i < count($some_array) ; $i++) {
            echo '<td>'.$some_array[$i].'</td>';
        }
        </tr>
    </table>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sending data from one page to the next in an MVC2 app. Page
I have problem with sending data from one form to another (using formhandler). I
If I'm sending data from an anchor attribute: <a id=123>foo</a> With no <form> around
I'm experimenting with sending data from a jsp form and calling a servlet and
I have an issue with sending POST data from my form. There is a
When sending data from one iOS device to another, I receive these errors. 2012-06-21
Hi I have a problem in sending data from php to pdf. I think
I have a little problem, I'm making project and I'm sending data from client
is there any small working program for recieving from and sending data to client
I am trying to receive a json object back from php after sending data

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.