add.php(When user click add photo)
-
You have a problem here
$_SESSION["auctionImages"][]= $auctionImage;
Variable $auctionImage
itself an array so need not to assign as an array again in SESSION
variable. Make it as
$_SESSION["auctionImages"]= $auctionImage;
It works fine for me.
below is the code I worked.
'; print_r($_SESSION['auctionImages']); // Printing final session value. It prints without the key image name
?>