Question: how to get the multiple selected value of 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.