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...

anyone ?

Member Avatar for diafol

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/

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.