Forum Moderators: open
Thanks in advance!
There's no way to this directly in the HTML. But you can run a validation script to enforce specific rules of many kinds - javascript onSubmit for the client-side, and your script of choice on the server side. If the integrity of the data is important, you can't just depend on the client side.