karimali831 Posted August 10, 2010 Share Posted August 10, 2010 Hi! When I echo $m below, it will show all selected options fine. Instead, I want it to show many I selected. So if I selected 3 in dropdown, I want it to say I selected 3 instead of showing their values. $allmaps=$_POST['maps']; foreach ($allmaps as $m) { echo 'm = '.$m.''; } <select name="maps[]" multiple>'.$maps.'</select> Link to comment https://forums.phpfreaks.com/topic/210287-foreach/ Share on other sites More sharing options...
gizmola Posted August 10, 2010 Share Posted August 10, 2010 $allmaps = $_POST['maps']; echo count($allmaps): Link to comment https://forums.phpfreaks.com/topic/210287-foreach/#findComment-1097338 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.