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
The solution you are looking for is the session. Use $_SESSION to store value of Your variables. For example, at the end of script:
$_SESSION
$_SESSION['images'] = $images;
and in form's input: