473,320 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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
Oct 26 '06 #1
4 1274
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.

Oct 26 '06 #2
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-P.../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
Oct 26 '06 #3
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

Oct 30 '06 #4
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" <aa*********@tiscali.co.ukwrote in message
news:11**********************@e64g2000cwd.googlegr oups.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

Oct 30 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: AndyDunning | last post by:
Hello, I'm interested in establishing the best way to pass information between a vb script and a .net application. We have a VbScript that runs on a users pc every time a phone call is routed...
3
by: Simon Harvey | last post by:
Hi, In my application I get lots of different sorts of information from databases. As such, a lot of information is stored in DataSets and DataTable objects. Up until now, I have been passing...
7
by: Ken Allen | last post by:
I have a .net client/server application using remoting, and I cannot get the custom exception class to pass from the server to the client. The custom exception is derived from ApplicationException...
9
by: Just Me | last post by:
PARAFORMAT2 is a structure that SendMessage will return stuff in. Is the "ref" correct or since only a pointer is being passed should it be by value? Suppose I was passing data rather then...
7
by: Tim | last post by:
When there is a need to pass some dynamic information between 2 managed assemblies, the "Dictionary object" in Generic form can be used as a method parameter to pass the information. The...
3
by: sd2004 | last post by:
I am still learning, could someone show/explain to me how to fix the error. I can see it is being wrong but do not know how to fix. could you also recommend a book that I can ref. to ?...
2
by: sonaliagr | last post by:
I am trying to update a msg array in function by passing the address but it is showing an error. and also, i want the value of msg array to be accessible to the full code that is inside the main...
9
by: Greger | last post by:
Hi, I am building an architecture that passes my custom objects to and from webservices. (Our internal architecture requires me to use webservices to any suggestion to use other remoting...
46
by: ahmed.maryam | last post by:
Hi all, I have 2 C# applications that I need to pass data between. Specifically XML information such as a document or node name. How can I do that? Thanks in advance! ~ Maryam
2
by: Vinay Sajip | last post by:
Some users of the logging package have raised an issue regarding the difficulty of passing additional contextual information when logging. For example, the developer of a networked application may...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.