PHP arrays

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KeredDrahcir
    Contributor
    • Nov 2009
    • 426

    PHP arrays

    This is going to sound like a really silly question. It's been so long since I did php I need a reminder. If I fill an array with values, will the still be accessed when I go to another page or do I need to send the values or the array with the link?
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    You won't be able to access it from a different page. But instead of sending it from page to page, you could use session variables. That will stay with a user until the session is expired/destroyed.

    Comment

    • KeredDrahcir
      Contributor
      • Nov 2009
      • 426

      #3
      I was thinking of that. Can I uses session arrays?

      Comment

      • Rabbit
        Recognized Expert MVP
        • Jan 2007
        • 12517

        #4
        Yes you can.

        Comment

        • KeredDrahcir
          Contributor
          • Nov 2009
          • 426

          #5
          Great. I'll have a think about that and get back to you with how I get on.

          Comment

          Working...