You can use a select box with 12 options (values going from 1 to 12). Then make the selection of some entry in it mandatory. Or make one of them selected by default.
If you are using a text box, you will have to do a number of validations. People can enter <space>0, space<1> etc. which should go correct. Then you will have to trap other characters etc.
If there are only 12 options for the select box (with values going from 1 to 12), you don't need any validation. One value from this will always be selected.
--------------------------------------------------------------------------
ps. You have to do some basic authentication works as below.
The action page for the form containing the above select box should check whether the posting has come from the correct website. Otherwise, people can copy the form from the source, change the select box as they wish, add more options and then submit by giving the full path of action page. You have to avoid this.
|