What technology or how can I connect BarCode reader to php code/page?

Please HELP

Thank you,
Kanaps

    A barcode READER? Mostr barcode readers (www.symbol.com) convert the barcodes into text/number string and append an ENTER to the end of that string... So HTML input forms work just fine...

      Can I ask what it will be used for, other than the obvious reading of a barcode?

      Just that there is premade software designed to read it available on the high street. 🙂

        dont think so.. because we are doing system for the college. Every student/teacher has a card and can scan when need to do something or for attendance or..... if teacher scans his card he will be able to see his classes and hours worked, personal details.

          Once again... A barcode is simply a graphical representation of a string .... All barcode readers take this graphic SCAN and convert it into a String for the computer to understand... Most automatically input it into the computer as the string had been typed on the keyboard.. Additionally, most scanners come with the default set to append an ENTER or RETURN to the end of each barcode scanned. Therefore it is a simple process:

          1) Create an Form <Input type=text name=barcode size=x>
          2) use Javascript to ensure focus on your "barcode" field
          3) when a user scans a barcode the form will automatically be submitted provided that the barcode scanner is appending a RETURN or ENTER key

          I have done this many, mnay times and it works very well. The only thing to keep in mind is to use good QUALITY barcode scanners (which unfortunately tend to get expensive) I have found the scanners from symbol such as the LS2208 are very good.

            4 years later

            sir..
            I'm new in PHP..
            and I'd like to know how to connect the barcode reader to PHP..

            can you post a sample codes here??

            tnx a lot...

              co0ldrive310;10912101 wrote:

              sir..
              I'm new in PHP..
              and I'd like to know how to connect the barcode reader to PHP..

              can you post a sample codes here??

              tnx a lot...

              Wow, this is an OLD thread! As I stated above, a Barcode reader is NO Different than a keyboard. Once your barcode reader is plugged into the computer, it's just a matter of:
              1) Using some javascript to put the focus on the proper form input field whn page loads
              2) Making sure your barcode reader appends a <RETURN> after each read code
              3) Using PHP to parse the forms input

                a year later

                The 3 steps below given by u r not clear.
                1) Create an Form <Input type=text name=barcode size=x>
                2) use Javascript to ensure focus on your "barcode" field
                3) when a user scans a barcode the form will automatically be submitted provided that the barcode scanner is appending a RETURN or ENTER key

                Tell me how to read from the scanner. I need the function and the code.. I m not satisfied by ur ans..😃 I need 2 use the scanner readin in all the oses like "Linux, Windows"

                  s3thu;10948042 wrote:

                  The 3 steps below given by u r not clear.
                  1) Create an Form <Input type=text name=barcode size=x>
                  2) use Javascript to ensure focus on your "barcode" field
                  3) when a user scans a barcode the form will automatically be submitted provided that the barcode scanner is appending a RETURN or ENTER key

                  Tell me how to read from the scanner. I need the function and the code.. I m not satisfied by ur ans..😃 I need 2 use the scanner readin in all the oses like "Linux, Windows"

                  Last time I also though like you as in inside my program I will attempt to read from the barcode scanner ala fopen(...) followed by fread or fgets then process etc etc but boy I am so wrong!

                  Basically if you imagine barcode scanner as the keyboard you use to type words followed by the Enter key you will know how it works. You do not need to write so complicated program to read from the barcode scanner. The barcode scanner will "emit" the string on the Textfield that is in focus and then "emit" Enter to trigger the default form action.

                  It is that simple. It has been like that since the era of M$ Visual Basic times. My program during that time was using M$ Visual Basic and that is how I read the barcode scanner "emitted string". During that time still using PS2 port to connect the barcode scanner to the PC!!!! Now I presume it should be using USB port 😃

                    s3thu;10948042 wrote:

                    The 3 steps below given by u r not clear.
                    1) Create an Form <Input type=text name=barcode size=x>
                    2) use Javascript to ensure focus on your "barcode" field
                    3) when a user scans a barcode the form will automatically be submitted provided that the barcode scanner is appending a RETURN or ENTER key

                    Tell me how to read from the scanner. I need the function and the code.. I m not satisfied by ur ans..😃 I need 2 use the scanner readin in all the oses like "Linux, Windows"

                    you HONESTLY think you're going to get a reply after that??! I wasn't aware people on this forum WORKED for you..

                      2 years later

                      Not that in spite we should refuse to reply-nor in indignity give acquiescence - but as a professional - simply ignore the abuse and move doggedly on.

                        Write a Reply...