PHP and Barcode Scanners
If i have a website running php and apache, what do i need to be able to attach a scanner to it? How do i get the scanner to fill in a value on one of the webforms on my page?
5 Answers
generic viagra good http://canadian-pharmacyon.com
<a href=http://canadian-pharmacyon.com>cheap viagra 100mg</a> Posted: vygxei 0 of 0 people found this answer helpful. Did you? Yes No
Viagra Prix Au Maroc <a href=http://buyciali.com>cialis without prescription</a> Amoxicillin And Gallstones
Posted: Ellgaibra 0 of 0 people found this answer helpful. Did you? Yes No
I just did this for an application. It's actually simple. The scanner is just another input method and is, in fact, similar to a keyboard. When you scan the barcode the data is decoded by the scanner and sent to whatever application is waiting to receive it. In the case of a web-based application it would be a form, most likely with a textarea with focus. The data would then populate the textarea just as if someone had typed the barcode's data into it. The form is then submitted and processed normally.
Just make sure the textarea has focus or else the data will go either nowhere or to wherever focus is (which may be another form field or the address bar). I have yet to figure how how to get the form to auto-submit upon the entry of the barcode data as the scanner does not send event information (i.e. submit) and special characters such as tab (\t) do not seem to work. (If anyone knows how to accomplish this I am very interested in knowing how it can be done). Posted: Go 1 of 1 people found this answer helpful. Did you? Yes No
WASP makes a line of barcode scanners that simply plug into USB or PS/2 inputs and basically convert the barcode scanned into the characters, just like a user typed them using a keyboard. They have an FAQ and help videos that may be of assistance, too.
When designing your web app, depending on how users interact with it, you can use Javascript to move focus from one field to another so that a user can scan barcodes sequentially without having to click on the field where the characters go. (Similar to how some forms move focus as you type data with a known length, such as a zip code or phone number.) Posted: xtremex 2 of 2 people found this answer helpful. Did you? Yes No how can i do that, i dont know the number of characters going to be scanned, so how will i use javascript to change the textbox, without clicking anywhere
Usually, these scanners are equivalent to a keyboard input, so you just select the appropriate input point on the web page, scan, and then submit the form.
For actually creating barcodes in PHP, you might want to have a look at:here and here Posted: MacOS 2 of 2 people found this answer helpful. Did you? Yes No |
© Advanced Web Core. All rights reserved