Hello is there a way of checking the input field have a value but with out clicking a button, for ex. if i write any letter inside the field to give me result for example hello or something else...

You'll need Javascript.

Member Avatar

You can't do this, as mentioned previously, without javascript of some description. You can use javascript validation or even use ajaxed validation - although this would be overkill IMO.

BUT, bear in mind that javascript (or client-side) validation can be circumvented and you MUST back up this with server-side validation (PHP validation in your case).

HMTL5 comes with a set of pre-defined validation attributes and properties, like require, min, max etc.

http://www.the-art-of-web.com/html/html5-form-validation/