Seems that I should not ask questions after midnight!
Some points:
Here is what is happening, we have been using a hosted shopping cart for some years, we can no longer use it because they do not support our new payment processor. Because we have a huge base of statically coded HTML pages, going back to 1996, built on this cart I need to emulate its operation. In a simple example this is what I get from the form:
Now, the right hand portion of the option, if present, in the case of options1, 3 & 5 will be added to produce the final price. In this example the total price is op1+op2+op3 or $89.95.item : p-1723^I-0100^Internet book^op1op3op5^1^^^^^^ op1 : Single copy - $69.95 op3 : Hard cover - $10.00 op5 : Signed - $10.00
The left portion, the text part, will be appended to the description. However, here comes my twist, according the documentation for the original script, op2 and op4 if returned from the form needs to be interpolated inthe description, it could be like this:
So that when the description is displayed it will look like:op2 : <br>Cover: op4 : <br>
In a single cell in a table.Single copy Cover: Hard cover Signed
My question is this. How would you, or the other monks, suggest I create the hash I would like to use. Or even better, should I be using a hash like that at all?
Your respectful Perl novice,
John
In reply to Re: Re: CGI - Parsing many options.
by jdtoronto
in thread CGI - Parsing many options.
by jdtoronto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |