There is such a form:
<form method="post" action=""> <select name="s"> <option value="1">Москва</option> <option value="2">Санкт-Петербург</option> </select> <input type="submit" name="submit" /> </form>
We have a select, in which there are options, options have different value. When getting a select value:
<?php if (isset($_POST['submit'])) { echo $_POST['s']; } ?>
we get either 1 or 2, but I would like the names of cities. If you remove the value of the option'ov, then everything is in order ...