I have seen lots of examples of identifying barcode input by speed of input, but often users will cut and paste input, which is also fast.
I am trying to prevent users from using barcode features on my web application who have not purchased my barcode package. I can’t know what reader they may use, but the format will always be code 39.
I am positing this in the PHP forum because PHP is used to process form data, however a javascript solution would also be acceptable.
And how do you determine something was read by barcode reader? PHP doesnt see input as it happens; even Javascript cant tell the difference between a barcode reader and someone typing quickly or as you say, copy/pasting.
If there were extra characters being sent, you’d have to have weeded them out when your script handles the input - otherwise you would never match anything that was barcode scanned anyway. If you havent had to do that… then it tells you that there’s no difference between a barcode reader and me typing the numbers in. (Which, to my knowledge, is exactly what a barcode reader does - scans the barcode, translates it into numbers, and then ‘types’ the numbers to the target program)