passing information

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Auddog

    passing information

    I'm needing to work with a bar code scanner and have come to realize that
    after scanning a barcode the unit actually does a hard return. What is the
    best way to variables from one page to another. I was thinking of creating
    5 pages of for input and the last one would have the submit button. I just
    don't what would be the best way to pass the variables from page one, two,
    three.. etc to page 5. Thanks for any help you might be able to offer.

    A


  • Moot

    #2
    Re: passing information

    Auddog wrote:
    I'm needing to work with a bar code scanner and have come to realize that
    after scanning a barcode the unit actually does a hard return. What is the
    best way to variables from one page to another. I was thinking of creating
    5 pages of for input and the last one would have the submit button. I just
    don't what would be the best way to pass the variables from page one, two,
    three.. etc to page 5. Thanks for any help you might be able to offer.
    >
    A
    Since each form submission is unique (ie: no relation to past form
    submissions, as far as the server is concerned), the easiest way to
    pass values across muti-part forms is to take those values submitted to
    each part and place them in hidden form elements (<input
    type="hidden">) and just keep passing them along until you're ready to
    process the data.

    Comment

    • brephophagist

      #3
      Re: passing information

      Traditionally,



      and



      are the most common flat-file based solutions for getting data to
      persist between pages. Normally the deciding factor between the two is
      how much information actually needs to be saved, and how secure it
      needs to be. The more information / more secure, more likely you are
      to want to use sessions. (Generally speaking.)

      You could always use a database of some sort as well (SQLite or MySQL,
      e.g.) in concert with sessions.

      FWIW there are 2 great chapters about this in George Schlossnagle's
      book Advanced PHP Programming:


      I have essentially given you the 4-sentence version of one of those
      chapters' introductory discussion. :)

      Auddog wrote:
      I'm needing to work with a bar code scanner and have come to realize that
      after scanning a barcode the unit actually does a hard return. What is the
      best way to variables from one page to another. I was thinking of creating
      5 pages of for input and the last one would have the submit button. I just
      don't what would be the best way to pass the variables from page one, two,
      three.. etc to page 5. Thanks for any help you might be able to offer.
      >
      A

      Comment

      • frothpoker

        #4
        Re: passing information

        Most barcode readers come with a book of codes where you can program
        the readers behaviour and disable the CRLF if necessary. Normally you
        would not want to do this because the whole point of using the reader
        is to enter some data and submit it.

        Obiron

        Comment

        • Auddog

          #5
          Re: passing information

          I will have to check that out. I hope there is a way that I can use the tab
          instead of the CRLF. That would really make it easy on me.

          thanks for all the help.

          A

          "frothpoker " <aaron.reese@ti scali.co.ukwrot e in message
          news:1162208830 .176527.281640@ e64g2000cwd.goo glegroups.com.. .
          Most barcode readers come with a book of codes where you can program
          the readers behaviour and disable the CRLF if necessary. Normally you
          would not want to do this because the whole point of using the reader
          is to enter some data and submit it.
          >
          Obiron
          >

          Comment

          Working...