Is it possible to call a JavaScript or jQuery function on input change that checks a DB via PHP? -


as stated, i'd live validation on form. specifically, i'd add function this:

<input onchange="validate();"></input>  function validate() {     // php here check input value against table value on server } 

is possible? can't find reference kind of thing anywhere. i'd able check values against sql table without page reload

you have few options. first, can make ajax call. can done.

second, depending on information in sql table size of sql table, can load of on page load , store json blob. there, validate() function can parse json.

usually option take ajax call option.


Comments