Here is code for the 1st php file:
    <html>
    <body>
        <form name="form" method="post">
              Size of array: <input type="number" name="size">
        <input type="submit" name="Send" button style="width:700px;height:250px" value="Show array"></span></p> 
        </form>
    </body>
</html>
<?php
  session_start();
    if(isset($_POST['Send']))
    {
            for ($i = 0; $i < $_POST['size']; $i ++) 
            {
                $random[] = rand(0, 10);
            }
            $_SESSION['random'] = $random;
            var_dump($_SESSION['random']);
            //sort($random);
         echo "<br>";
         echo "<br>";
         echo "Amount of array's elements: ";
         echo '<strong>'.count($random).'</strong>';    
         header('Location: 2nd_form.php');
         exit();
    }
?>
And here is code for the 2nd file:
<?php
// Start the session
session_start();
//session_start();
var_dump($_SESSION['random']);
?>
So, how to save array which is at the 1st form and code must save it for the 2nd file ? Pls help :-(
 
     
    