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

前端 未结 6 1791
春和景丽
春和景丽 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:44

    Barcode scanners act just like a keyboard in the sense that they will input whatever barcode text into whatever focused field you have. I would set up a form with a text box for input. Submit said form to a php page to process the input. Access the variable like so

    $_GET['variable'] or $_POST['variable']
    

    depending on your form post method

提交回复
热议问题