HTML:
<select name='pol'> <option value="m">Мужской</option> <option value="f">Женский</option> </select>
PHP:
if (isset($_POST['pol'])) { $pol=$_POST['pol']; if ($pol =='') { unset($pol); } }
How to make it so that if the variable pol is not equal to m or f, it displays an error? (How will it not be equal? Someone can go to “View Code” and edit it)