I'm developing a small activity plugin and have some issues with querying a selected dropdown item.
Dropdown on page 1:
echo html_writer::select($myarray, "mydropdown");
By clicking on a button on page 1 a new page 2 opens where I need the value of the select item in mydropdown
$myurl= new moodle_url('/mod/test/newpage.php', ['id' => $cm->id, 'dropdownvalue' => ?value of dropdown?]);
echo html_writer::link($myurl, "Go to next page", ['class' => 'btn btn-primary']);