Not sure if the question is "what's the best method of passing
the data" or "what piece of data do I pass". So here's both,
the second one first.
You can pass either the customer number or potentially the
ROWID. The ROWID can sometimes change, but only if the
same Customer Number was both deleted and then readded
again since the time you displayed it on the screen. It
would be much more likely the record simply was deleted
and checking on ROWID or Customer number would give
the same result. If customer number is something you
don't want to be showing people, try ROWID instead.
Otherwise they're close in terms of usability.
As to how - the WebSpeed Handbook covers the three methods.
There are three, three, and only three methods of passing
data from page to page. The URL, cookies, and fields.
(both hidden and not) Cookies should be used as little
as possible as they can be refused. Since you're not
asking the user for the input (you know it already), a
field would use a hidden one. There's nothing wrong with
this under the circumstances but it's awkward when you
have a list of 20 customers on the screen. 20 customers
equates to 20 different <FORM>'s in your HTML. Save that
for when you are prompting the user for input and have
only one <FORM>. In this case I'd make each customer number
a link instead of using a button. That's the easiest way
to build the URL into the A HREF=. If you really like
the button idea, then use an onSubmit JS trigger to go
the a URL with the customer no/ROWID built into it.
=================================================================
Geoff Crawford Phone: (973) 361 - 4224
Innovative Client Servers FAX: (973) 537 - 6946
75 Fleetwood Drive, Suite 200 Email: geoff@innov8cs.com
Rockaway NJ 07886 Web:
http://www.innov8cs.com
Orange and Black Forever