I\'m making a php script that stores 3 arrays: $images, $urls, $titles based on the input data of the form within the php file.
$images
$urls
$titles
Store the variables in a PHP session.
session_start(); $_SESSION['images'] = $images;
Then on next (or any other) page, you can retrieve the values as:
session_start(); $images = $_SESSION['images'];