Control <select> in PHP

Hello,
this is on me already complicated enough.
I need to check that there was selected from the menu and did not remain there >choose<
I send only a part of the HTML code:

[sup]

...... choose first second third fourth fifth ...... [/sup]

Clients to send the form without selecting from the menu. I need to avoid this.
Other are checked. Thank you.

You can use the disabled attribute to prevent the user selecting that option, although it’s an option for nothing when you can have it as a required element of the form:

[php]

<select name="number">
  <option value="0" disabled> choose </option>
  <option value="1"> first </option>
  <option value="2"> second </option>
  <option value="3"> third </option>
  <option value="4"> fourth </option>
  <option value="5"> fifth </option>
</select>
[/php]
Sponsor our Newsletter | Privacy Policy | Terms of Service