Identifying barcode input

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.

I appreciate any code snippets or advice.

What… exactly are you trying to prevent people from doing?

I’m trying to prevent input via barcode reader.

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.

That is exactly my question: How to determine something was read by a barcode reader.

I’m hoping there is some difference I am presently unaware of, such as some extra characters sent.

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)

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.