Hmm... I think the first part of foreach should be an array... So, more like foreach($GLOBALS as $photo)... Unless photo is an array containing photos... However, how to make a variable become global, I'm not sure of... "Mike" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > When running the following code: > > foreach($GLOBALS['photo'] as $photo) > > I get: > > Warning: Invalid argument supplied for foreach() on line 63 > > Would register globals have to be on for this code to work? Am I using the > $GLOBALS clause wrong? It would seem to me that this should work since you > can use post in the same fashion. > ie: foreach($_POST['photo'] as $photo) > > ~ Mike > >
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php