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
Use sessions: http://php.net/manual/en/function.session-start.php