#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    na, na, na
    Posts
    2
    Rep Power
    0
    Has anyone had any experience in linking a barcode scanner with a PHP application?
    I'm looking at creating a sort of web based POS system.
    Thanks!

    PEACE

    AX

    PHP ROCKS!
  2. #2
  3. Full Access
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jun 2000
    Location
    London, UK
    Posts
    2,019
    Rep Power
    17
    With barcode scanners what they do is scan the barcode and then stick that number within the barcode into the active program. So say you scan a barcode whilst your cursor is in a text field element of an HTML form it will put the number held in the barcode into that textfield.

    You might be interested in looking into a Javascript that automatically puts the cursor in a text field for you. Do something like this for your <body> tag:

    <body onLoad="document.form.code.focus()">

    where form is the name of your form and code is the name of the text field that you want the cursor to be placed in.

    ----------------------------------------
    Alex
    (http://www.alex-greg.co.uk)
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    na, na, na
    Posts
    2
    Rep Power
    0
    EXCELENT!
    Thanks very much!
    I just hate "unknowns"


    PEACE

    AX

    PHP ROCKS!

Similar Threads

  1. IPtables help for rh8
    By climber in forum Linux Help
    Replies: 0
    Last Post: December 1st, 2003, 10:26 PM
  2. barcode scanner
    By teao in forum Visual Basic Programming
    Replies: 10
    Last Post: November 28th, 2003, 01:47 AM
  3. Behavior (HTC) problem with input type text
    By korg in forum HTML Programming
    Replies: 0
    Last Post: November 5th, 2003, 09:46 AM
  4. input file operations
    By jonnyfive in forum C Programming
    Replies: 1
    Last Post: September 21st, 2003, 09:24 PM
  5. duplicate input in 2 form fields
    By hoagnes in forum PHP Development
    Replies: 3
    Last Post: September 8th, 2003, 09:56 PM

IMN logo majestic logo threadwatch logo seochat tools logo