Hope this makes sense!
I'm building an ASP page which allows uses to add items to an invoice
via a form, ie:
Item No Part No Order No Quanity Units Price VAT
------- ------- -------- ------- ----- ----- ---
.... ... ... ... ... ... ...
<Add item> <Submit>
What I want to do is have the user add one item at a time (because we
dont know how many items are going to be added), and slowly build up
an array of records.
To do this the user will be persented with a form (as above) which
they use to add the first item. They then click the <Add item>
button. This will submit the data to an ASP script to be validated.
The data is then added to an array and the user is returned to the
invoice page.
I will then display the line they have already entered beneath the
item entry (shown above). They then add another line and click <Add
item> and the process is repeated until all items have been added.
Finally the user clicks Submit and the data is stored in the database.
To do this I obviously need to store each new line in an array. But
I've just realised that I cant do this unless I store the array itself
in a session variable. Is this acceptable, or is another method
available that would support this?
TIA,
Colin