There is a page with a form where the user enters a date. When you click on the button, the required data is calculated, but the form is reset. That is, the first select option values are again displayed in the form. It is necessary that in the user-selected option of steel with the selected attribute, after clicking on the button, they are again shown in the form. I do this:
<option value="05" <?php if ($_POST["days"] == 5) {echo "selected";} ?>>5</option> <option value="06" <?php if ($_POST["days"] == 6) {echo "selected";} ?>>6</option> but too many lines, is there another way?
