You will have a VERY limited option if you don't want to use Javascript (don't know why). You have validation as an attribute of a field (for example, maxlengthin an input field) that are very limited . Client-side validation is always performed along with server-side validation. They complement each other.