|
Posted by brephophagist on 10/26/06 19:15
Traditionally,
http://www.php.net/manual/en/ref.session.php
and
http://www.php.net/manual/en/features.cookies.php
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:
http://www.amazon.com/Advanced-PHP-Programming-George-Schlossnagle/dp/0672325616
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
Navigation:
[Reply to this message]
|