[thelist] click to add a line r delete this line?

Barry Woolgar barry at burnthebook.co.uk
Thu Aug 28 11:29:16 CDT 2008


Hello

Sorry I'm not sure I'm understanding what it is you are asking. Sounds like
you want someone to write you a inventory management script!

As a start point you could use HTML form input arrays, where you use square
brackets to build arrays of values when the form is submitted. For example,
each row would have an input named "SKU[unique_row_id]". Then when the form
is submitted (with PHP at least) you will be able to access the values from
the $_POST array like this:

$_POST['SKU']['prod1'] // first prod SKU
$_POST['SKU']['prod2'] // second prod SKU
$_POST['SKU'][prodX'] // and so on

This way you can have a grid based form with loads of input fields and a
relatively easy way to sort them all out when processing it.

There could be some accessibility and usability issues here but hopefully
it'll point you in the right direction.

Barry


-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Bob Meetin
Sent: 28 August 2008 17:13
To: thelist at lists.evolt.org
Subject: Re: [thelist] click to add a line r delete this line?

Bob Meetin wrote:
> A customer who does not wish to edit individual inventory items, 
> rather wants a single page where he can edit each item in a way 
> similar to editing an HTML table.  Descriptions are not terribly long 
> so this should be doable. There is no eCommerce here, inventory list only.
> Example (imagine this with input fields):
>
> ----------------------------------------------------------------------
> ------------------------
>
> Prod name ________ SKU ________ Color ________ Availability ________ 
> Price ________ Delete (checkmark, etc) Prod name ________ SKU ________ 
> Color ________ Availability ________ Price ________ Delete (checkmark, 
> etc) Prod name ________ SKU ________ Color ________ Availability 
> ________ Price ________ Delete (checkmark, etc) Prod name ________ SKU 
> ________ Color ________ Availability ________ Price ________ Delete 
> (checkmark, etc)
>
> Add new line item (checkmark, etc)
>
> ----------------------------------------------------------------------
> ------------------------
>
> If you click on or submit delete the line item goes south. Clicking on 
> "Add new line item" of course does exactly that. Storing the data in a 
> flat file (csv) or db is fine.
>
>   
==> Either evolt, my email program, Tbird,  or my email provider is
splitting lines at about 80 char.  Sorry, price was supposed to be part of
the previous line.  This line-splitting is annoying, so daggone
presumptios!!!  So:

Prod ____ SKU ____ Color ____ Avail? ____ Price ____ Delete this line



-- 

* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester and archives
of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! 

No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 270.6.10/1638 - Release Date: 27/08/2008
19:06
 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 270.6.10/1638 - Release Date: 27/08/2008
19:06
 




More information about the thelist mailing list