Forums

Validation on text area

smallville 17 Dec, 2013
I have a database containing various numbers with 11 digits (each line contains a number). How to put validation to allow a transition to the next field only if one of the values ​​that are in the database?
GreyHead 17 Dec, 2013
Hi smallville,

Depending on how secure you need to be you can do it with Ajax in the browser, or better, using Serverside validation after the form submits. In either case you'll need a few lines of PHP+MySQL to query the database and check if the code exists.

Bob
This topic is locked and no more replies can be posted.