I have a feeling that if it weren't for
shopping cart
scripts, the Internet bubble woldn't have occured,
Venture Capital firms would have nowhere to put their money,
and 50% of the high tech workforce would be working at
the local Wal Mart. Maybe that's just me being cynical.
Anyway, it's not entirely clear what you are working with,
or what you are trying to achieve. If you want to put
something into a URL, you can change the HREF of a given
object dynamically, or even have an HREF that is of the
"javascript:" variety. Either way, you are doing something
wierd if the client has to figure out the URLs.
It might be better to do the calculations in parallel on
the server instead of trusting the client to send data back
to you. Imagine someone figured out what you were doing
and made a page something like:
<INPUT TYPE=hidden NAME=item_1_id VALUE="XB17 Hovercraft">
<INPUT TYPE=hidden NAME=item_1_price VALUE="$250,000">
<INPUT TYPE=hidden NAME=total VALUE="$5.99">
You can imagine how bad that would look on the quarterly
report.
If you want to do calculations on the client, go right ahead,
but don't send these values back to the server and use them
without checking. Remember that data that comes in from
the client is guilty until proven innocent. You never
know what those crazy users are going to do.