The Session is formed with this:
if(isset($_POST['order_photo'])){
$picture_id = $POST['file'];
foreach($POST as $key => $val){
$_SESSION[$picture_id][$key] = $val;
}
}
///////////AND THEN
echo '<pre>$SESSION:' . print_r($SESSION,true) . '</pre>';
The Above Yeilds This In The Browser:
$_SESSION:Array
(
[P1040050.jpg] => Array
(
[picture] => ALBUMS/Holmes_Adams/P1040050.jpg //<----PICTURE 1 LOCATION
[file] => P1040050.jpg
[S46] => 4 x 6
[QU46] => 10
[S57] => 5 x 7
[QU57] => 20
[S810] => 8 x 10
[QU810] => 30
[order_photo] => Order This Photo
)
[P1040052.jpg] => Array
(
[picture] => ALBUMS/Holmes_Adams/P1040052.jpg //<------PICTURE 2 LOCATION
[file] => P1040052.jpg
[S46] => 4 x 6
[QU46] => 30
[S57] => 5 x 7
[QU57] => 20
[S810] => 8 x 10
[QU810] => 10
[order_photo] => Order This Photo
)
)
//////NOTE THE ARRAY ABOVE WAS MADE AFTER TWO FORM POSTS
foreach ($_SESSION as $file => $val){
echo"<img src='" . $_SESSION[SOMETHING??][HERE??] . "'>";
}
Right now all I get are 2 unidentified picture icons because of the two dimensions of the array. If I add more to the array (by posting the form) I get more icons.