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> Quote 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): Quote Link to comment https://forums.phpfreaks.com/topic/210287-foreach/#findComment-1097338 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.