title: storing multiple data by using $_SESSION array without using database in php
body: <p>i want to store multiple data by using session array from one page to another......here is my code:</p>
  
  <pre><code>&lt;?php
  
      session_start();
      $_SESSION['login_status'] = false;
  
  ?&gt;
  &lt;html&gt;
  
      &lt;title&gt; Registration  &lt;/title&gt;
  
      &lt;body&gt;
  
          &lt;form method="post" action="multiple_login.php"&gt;
  
              Name:&lt;input type="text" name="Name"&gt; &lt;/br&gt;
              Age:&lt;input type="numeric" name="age"&gt; &lt;/br&gt;
              Address: &lt;input type="text" name="add"&gt; &lt;/br&gt;
              Email: &lt;input type = "text" name="email"&gt; &lt;/br&gt;
              Password: &lt;input type = "password" name="pass"&gt; &lt;/br&gt;
              Re-type password: &lt;input type = "password" name="r_pass"&gt; &lt;/br&gt;
                     &lt;input type="submit" value="Sign up"&gt;
  
  
  
          &lt;/form&gt;
  
  
      &lt;/body&gt;
  
  
  &lt;/html&gt;
  
  
  &lt;?php
  
  
  
  
  
      if($_POST){
  
  
          $_SESSION["user"] = array(
          "name" =&gt; $_POST["name"],
          "email" =&gt; $_POST["email"],
          "password" =&gt; $_POST["pass"]
      );
  
          $_SESSION['login_status'] = false;
  
              ?&gt;
  
              &lt;script&gt;
                  window.location = "http://localhost/login/m_log.php";
              &lt;/script&gt;
  
              &lt;?php
  
             // }
      }       
  ?&gt;
  </code></pre>
  
  <p>what am i supposed to do in m_log.php page for showing multiple names,addresses,ages,emails.. 
  for example: frst i give input name1,age1,add1,email1...it will show in the m_log page..and then if i again give input like name2,age2,add2... both name1 and name2 age1 and age2 will be shown in the m_log page...i don't want to use the database...thnx in advance :)</p>