NathanLedet
-
Posts
102 -
Joined
-
Last visited
Never
Posts posted by NathanLedet
-
-
Hi, I have a form with check boxes. When the form is submitted, i use the following code to retrieve the data:
$files = $_POST['files']; foreach ($files as $f => $value){ echo "$f <br />";
so everything that was checked will display as it should, but now I need to display that information in more than one location...and to me, it doesn't make sense to use a foreach statement every time I want to display that information...
is it possible to use that foreach statement one time, and then store the results in an array that I can just plop anywhere I need?
thanks!!
[SOLVED] Storing foreach results in an array
in PHP Coding Help
Posted
You....rock.....