Well, you can check it clientside with JavaScript (this isn't secure) then you can check serverside in PHP (you will want to do this).
Doing it JavaScript will make it easier and avoid so many page refreshes.
You will want to make an input box (<input type="text" />) and then use the onkeypress (or onchange depending on what you want exactly) event to call a javascript validation method. This will then check the value of the input box.
With the onkeypress you can restrict the user to only entering in numbers for example. Then if they enter a number over 1826 you could warn them or change it to 1826, ie. the highest.
Many choices for you here 😉