Data entry forms



I'm working on a data entry for for this application, and I'm stuck at what may end up being some bad code. I'm capturing data for two tables (custinfo and orderinfo) on one page. The top part of the data entry form collects data once for the transaction, kind of like an invoice captures customer details. The bottom part (the part I'm stuck on) captures order information line after line.

So, for example:

TopForm (custinfo)
Customer name
Customer address
Customer city, state, zip

Bottom form (orderinfo)
Item description
Item quantity
Item price

What I'm looking for is two things:

1) The ability to extend the bottom form item by item as the order grows.

2) The ability to remove items (last in, first out) if the order needs to shrink.

I can already clear the form, cancel data entry, and submit data for processing; I need to know how to dynamically enlarge or shrink the second half of the form.

Can this be done in PHP?
.



Relevant Pages

  • Re: Data entry forms
    ... Customer address ... The ability to extend the bottom form item by item as the order grows. ... Server (PHP script) must handle it, and send Ajax response to browser ...
    (comp.lang.php)
  • Re: Data entry forms
    ... Customer address ... The ability to extend the bottom form item by item as the order grows. ... of course you can generate the necessary output in PHP. ... You could also do it in Javascript and do it all on the client, but it requires Javascript be enabled. ...
    (comp.lang.php)