Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #5813

Data entry forms

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From Charles <cchamb2@gmail.com>
Newsgroups comp.lang.php
Subject Data entry forms
Date Thu, 3 May 2012 15:32:52 -0700 (PDT)
Organization http://groups.google.com
Lines 31
Message-ID <16041.28.1336084372301.JavaMail.geo-discussion-forums@ynf8> (permalink)
NNTP-Posting-Host 72.208.176.146
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-Trace posting.google.com 1336084759 14202 127.0.0.1 (3 May 2012 22:39:19 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Thu, 3 May 2012 22:39:19 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=72.208.176.146; posting-account=0TNT7AoAAABfgvAzb-BaNe7iUtYJdshD
User-Agent G2/1.0
X-Received-Bytes 1893
Xref csiph.com comp.lang.php:5813

Show key headers only | View raw


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?

Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Data entry forms Charles <cchamb2@gmail.com> - 2012-05-03 15:32 -0700
  Re: Data entry forms Jerry Stuckle <jstucklex@attglobal.net> - 2012-05-03 19:33 -0400
  Re: Data entry forms "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-05-04 09:38 +0200

csiph-web