I am aware it's an old script (an old way of doing things). The script works, however, the images do not upload in the right order. I am not exactly sure but it looks to me they upload from last to first instead of from first to last. What makes it do that? if (count($_FILES['pic']['tmp_name'])) { $ipval = ipval(); $uploaderror = 0; $uploadcount = 0; $errorMessages = array(); foreach ($_FILES['pic']['tmp_name'] as $k=> $tmpfile) { if ($tmpfile) { $thisfile =… Code (markup): Images upload in the wrong order
I am aware it's an old script (an old way of doing things). The script works, however, the images do not upload in the right order. I am not exactly sure but it looks to me they upload from last to first instead of from first to last. What makes it do that?
if (count($_FILES['pic']['tmp_name']))
{
$ipval = ipval();
$uploaderror = 0;
$uploadcount = 0;
$errorMessages = array();
foreach ($_FILES['pic']['tmp_name'] as $k=>$tmpfile)
{
if ($tmpfile)
{
$thisfile =...