Question: how to get multiple selected values from dropdown in php?
Answer: php header("Content-Type: text/plain"); foreach ($_GET['select2'] as $selectedOption) echo $selectedOption. "\n"; $_GET may be substituted by $_POST depending on the <form method="…" value. Use the following program for select the multiple values from select box.