neilwatson has asked for the wisdom of the Perl Monks concerning the following question:
Using an input for "How many line items does this PO have" I am able to generate a form that produces a table of line items exactly the length required. Example:
<tr> <th>description</th> <th>partno</th> <th>qty</th> <th>price</th> <th>currency</th> </tr> <tr> <td><input type=text name="description1"></td> <td><input type=text name="partno1"></td> <td><input type=text name="qty1"></td> <td><input type=text name="price1"></td> <td><input type=text name="currency1"></td> <input type=hidden name="podid1"></td> </tr> <tr> <td><input type=text name="description2"></td> <td><input type=text name="partno2"></td> <td><input type=text name="qty2"></td> <td><input type=text name="price2"></td> <td><input type=text name="currency2"></td> <input type=hidden name="podid2"></td> </tr>
What is the best way to pass all these variables to a mason component that does all the SQL work? How do I declair the variables qty1, qty2...etc in an <%args> if the number if them is always different?
Neil Watson
watson-wilson.ca
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML forms and variable line items
by Tuppence (Pilgrim) on Aug 13, 2004 at 20:54 UTC |