Is it possible to read/access the bar-code scanner values using PHP & MySQL?

前端 未结 6 1787
春和景丽
春和景丽 2020-12-15 01:57

I am trying to enable a PHP website to recognize barcode input.

I will load a web page in a browser, the focus (cursor) is set to recieve input into the text box.

6条回答
  •  粉色の甜心
    2020-12-15 02:25

    As already stated, bar code scanners usually only send a sequence of characters to the computer, much like a keyboard.

    If you want to make an efficient scanner, I would recommend using JavaScript and making an

     
    

    that sends the bar code by AJAX on a validated change or keyup-event.

提交回复
热议问题