Validating web form
By using the hooks provided by this module, you can also define your own validation rules in your own modules.
The following validation rules are currently included: A: You can validate against a whole range of things using the regular expressions validation rules, so we cannot give examples for every use case.
input field: This solution is still more complicated than it needs to be as it requires two extra images to be loaded. You forgot the most important part: by having these standard types to identify the fields, browsers can provide helpful autofill interfaces.In other web browsers they can be used in combination with the .Obviously neither example is very limiting, but it will prevent people from entering completely wrong values, such as phone number, strings with multiple '@'s or spaces.The simplest change you can make to your forms is to mark a text input field as 'required': This informs the (HTML5-aware) web browser that the field is to be considered mandatory.Different browsers may mark the input box in some way (Firefox 4 Beta adds a red box-shadow by default), display a warning (Opera) or even prevent the form from being submitted if this field has no value.