i would like to to put multiple selections from a form list into a single variable using foreach but am unsure how to do so.
can someone advise how to adapt the following code?
print "You are interested in: ";
foreach($myGoals as $value) { print "$value "; }
$var = implode(' ',$myGoals);
or
foreach($myGoals as $value) { $var .= $value . ' '; }
First method is easier.
---John Holmes...
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php