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.

In reply to Re: making perl scripts play nicely together by tadman
in thread making perl scripts play nicely together by strfry()

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.